Skip to content

Commit

Permalink
Remove Resharper config files
Browse files Browse the repository at this point in the history
  • Loading branch information
diseks committed Nov 8, 2013
1 parent 732a2f1 commit 86f8a3a
Show file tree
Hide file tree
Showing 16 changed files with 274 additions and 0 deletions.
75 changes: 75 additions & 0 deletions CashCode.Net/CashCode.Test/CashCode.Test.csproj
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">x86</Platform>
<ProductVersion>8.0.30703</ProductVersion>
<SchemaVersion>2.0</SchemaVersion>
<ProjectGuid>{0E1BE289-6D28-41C6-AAD6-271B19DCA9C6}</ProjectGuid>
<OutputType>Exe</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>CashCode.Test</RootNamespace>
<AssemblyName>CashCode.Test</AssemblyName>
<TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
<TargetFrameworkProfile>Client</TargetFrameworkProfile>
<FileAlignment>512</FileAlignment>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|x86' ">
<PlatformTarget>x86</PlatformTarget>
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>bin\Debug\</OutputPath>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|x86' ">
<PlatformTarget>x86</PlatformTarget>
<DebugType>pdbonly</DebugType>
<Optimize>true</Optimize>
<OutputPath>bin\Release\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<ItemGroup>
<Reference Include="System" />
<Reference Include="System.Core" />
<Reference Include="System.Xml.Linq" />
<Reference Include="System.Data.DataSetExtensions" />
<Reference Include="Microsoft.CSharp" />
<Reference Include="System.Data" />
<Reference Include="System.Xml" />
</ItemGroup>
<ItemGroup>
<Compile Include="Program.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
<Compile Include="Properties\Settings.Designer.cs">
<AutoGen>True</AutoGen>
<DesignTimeSharedInput>True</DesignTimeSharedInput>
<DependentUpon>Settings.settings</DependentUpon>
</Compile>
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\CashCode.Net\CashCode.Net.csproj">
<Project>{71B8BA4F-9AE3-4EC9-8196-79E0A2A4834B}</Project>
<Name>CashCode.Net</Name>
</ProjectReference>
</ItemGroup>
<ItemGroup>
<None Include="app.config" />
<None Include="Properties\Settings.settings">
<Generator>SettingsSingleFileGenerator</Generator>
<LastGenOutput>Settings.Designer.cs</LastGenOutput>
</None>
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.
<Target Name="BeforeBuild">
</Target>
<Target Name="AfterBuild">
</Target>
-->
</Project>
78 changes: 78 additions & 0 deletions CashCode.Net/CashCode.Test/Program.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,78 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using CashCode.Net;

namespace CashCodeTest
{
class Program
{
static int Sum = 0;

static void Main(string[] args)
{
try
{
using (CashCodeBillValidator c = new CashCodeBillValidator(CashCode.Test.Properties.Settings.Default.Port, 9600))
{
c.BillReceived += new BillReceivedHandler(c_BillReceived);
c.BillStacking += new BillStackingHandler(c_BillStacking);
c.BillCassetteStatusEvent += new BillCassetteHandler(c_BillCassetteStatusEvent);
c.ConnectBillValidator();

if (c.IsConnected)
{
c.PowerUpBillValidator();
c.StartListening();


c.EnableBillValidator();
Console.ReadKey();
c.DisableBillValidator();
Console.ReadKey();
c.EnableBillValidator();
Console.ReadKey();
c.StopListening();
}

c.Dispose();
}
}
catch (Exception ex)
{
Console.WriteLine(ex.Message);
}
}

static void c_BillCassetteStatusEvent(object Sender, BillCassetteEventArgs e)
{
Console.WriteLine(e.Status.ToString());
}

static void c_BillStacking(object Sender, System.ComponentModel.CancelEventArgs e)
{
Console.WriteLine("Купюра в стеке");
if (Sum > 100)
{
//e.Cancel = true;
Console.WriteLine("Превышен лимит единовременной оплаты");
}
}

static void c_BillReceived(object Sender, BillReceivedEventArgs e)
{
if (e.Status == BillRecievedStatus.Rejected)
{
Console.WriteLine(e.RejectedReason);
}
else if (e.Status == BillRecievedStatus.Accepted)
{
Sum += e.Value;
Console.WriteLine("Bill accepted! " + e.Value + " руб. Общая сумму: " + Sum.ToString());
}
}


}
}
36 changes: 36 additions & 0 deletions CashCode.Net/CashCode.Test/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;

// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("CashCode.Test")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("CashCode.Test")]
[assembly: AssemblyCopyright("Copyright © 2013")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]

// Setting ComVisible to false makes the types in this assembly not visible
// to COM components. If you need to access a type in this assembly from
// COM, set the ComVisible attribute to true on that type.
[assembly: ComVisible(false)]

// The following GUID is for the ID of the typelib if this project is exposed to COM
[assembly: Guid("75c553a2-e8e9-43fe-a44c-2d86e555b988")]

// Version information for an assembly consists of the following four values:
//
// Major Version
// Minor Version
// Build Number
// Revision
//
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.0.0.0")]
[assembly: AssemblyFileVersion("1.0.0.0")]
38 changes: 38 additions & 0 deletions CashCode.Net/CashCode.Test/Properties/Settings.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 9 additions & 0 deletions CashCode.Net/CashCode.Test/Properties/Settings.settings
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<?xml version='1.0' encoding='utf-8'?>
<SettingsFile xmlns="http://schemas.microsoft.com/VisualStudio/2004/01/settings" CurrentProfile="(Default)" GeneratedClassNamespace="CashCode.Test.Properties" GeneratedClassName="Settings">
<Profiles />
<Settings>
<Setting Name="Port" Type="System.String" Scope="User">
<Value Profile="(Default)">COM1</Value>
</Setting>
</Settings>
</SettingsFile>
15 changes: 15 additions & 0 deletions CashCode.Net/CashCode.Test/app.config
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<configSections>
<sectionGroup name="userSettings" type="System.Configuration.UserSettingsGroup, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" >
<section name="CashCode.Test.Properties.Settings" type="System.Configuration.ClientSettingsSection, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" allowExeDefinition="MachineToLocalUser" requirePermission="false" />
</sectionGroup>
</configSections>
<userSettings>
<CashCode.Test.Properties.Settings>
<setting name="Port" serializeAs="String">
<value>COM1</value>
</setting>
</CashCode.Test.Properties.Settings>
</userSettings>
</configuration>
Binary file not shown.
Binary file not shown.
Binary file not shown.
15 changes: 15 additions & 0 deletions CashCode.Net/CashCode.Test/bin/Debug/CashCode.Test.exe.config
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<configSections>
<sectionGroup name="userSettings" type="System.Configuration.UserSettingsGroup, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" >
<section name="CashCode.Test.Properties.Settings" type="System.Configuration.ClientSettingsSection, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" allowExeDefinition="MachineToLocalUser" requirePermission="false" />
</sectionGroup>
</configSections>
<userSettings>
<CashCode.Test.Properties.Settings>
<setting name="Port" serializeAs="String">
<value>COM1</value>
</setting>
</CashCode.Test.Properties.Settings>
</userSettings>
</configuration>
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
D:\GitHub\CashCode\CashCode.Net\CashCode.Test\obj\x86\Debug\CashCode.Test.csprojResolveAssemblyReference.cache
D:\GitHub\CashCode\CashCode.Net\CashCode.Test\bin\Debug\CashCode.Test.exe.config
D:\GitHub\CashCode\CashCode.Net\CashCode.Test\bin\Debug\CashCode.Test.exe
D:\GitHub\CashCode\CashCode.Net\CashCode.Test\bin\Debug\CashCode.Test.pdb
D:\GitHub\CashCode\CashCode.Net\CashCode.Test\bin\Debug\CashCode.Net.dll
D:\GitHub\CashCode\CashCode.Net\CashCode.Test\bin\Debug\CashCode.Net.pdb
D:\GitHub\CashCode\CashCode.Net\CashCode.Test\obj\x86\Debug\CashCode.Test.exe
D:\GitHub\CashCode\CashCode.Net\CashCode.Test\obj\x86\Debug\CashCode.Test.pdb
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

0 comments on commit 86f8a3a

Please sign in to comment.