Browse Source

update example start device

pull/17/head
Gavin 8 years ago
parent
commit
b4a4afc3d0
  1. BIN
      SCADA/Example/CoreTest.exe
  2. 8
      SCADA/Program/CoreTest/StartDevice.xaml.cs
  3. 32
      SCADA/Program/FileDriver/FileDriver.sln

BIN
SCADA/Example/CoreTest.exe

Binary file not shown.

8
SCADA/Program/CoreTest/StartDevice.xaml.cs

@ -20,14 +20,14 @@ namespace CoreTest
btnStart.Click += new RoutedEventHandler((s, e) =>
{
var tag = App.Server[dev + "_Manu"];
if (tag != null) tag.Write(1);
var tag = App.Server[dev + "_Running"];
if (tag != null) tag.Write(true);
this.Close();
});
btnStop.Click += new RoutedEventHandler((s, e) =>
{
var tag = App.Server[dev + "_Manu"];
if (tag != null) tag.Write(2);
var tag = App.Server[dev + "_Running"];
if (tag != null) tag.Write(false);
this.Close();
});

32
SCADA/Program/FileDriver/FileDriver.sln

@ -1,32 +0,0 @@

Microsoft Visual Studio Solution File, Format Version 11.00
# Visual Studio 2010
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "FileDriver", "FileDriver.csproj", "{FCDB7791-F4B6-4504-91BC-4D0291E317F3}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Debug|Itanium = Debug|Itanium
Debug|x64 = Debug|x64
Release|Any CPU = Release|Any CPU
Release|Itanium = Release|Itanium
Release|x64 = Release|x64
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{FCDB7791-F4B6-4504-91BC-4D0291E317F3}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{FCDB7791-F4B6-4504-91BC-4D0291E317F3}.Debug|Any CPU.Build.0 = Debug|Any CPU
{FCDB7791-F4B6-4504-91BC-4D0291E317F3}.Debug|Itanium.ActiveCfg = Debug|Itanium
{FCDB7791-F4B6-4504-91BC-4D0291E317F3}.Debug|Itanium.Build.0 = Debug|Itanium
{FCDB7791-F4B6-4504-91BC-4D0291E317F3}.Debug|x64.ActiveCfg = Debug|x64
{FCDB7791-F4B6-4504-91BC-4D0291E317F3}.Debug|x64.Build.0 = Debug|x64
{FCDB7791-F4B6-4504-91BC-4D0291E317F3}.Release|Any CPU.ActiveCfg = Release|Any CPU
{FCDB7791-F4B6-4504-91BC-4D0291E317F3}.Release|Any CPU.Build.0 = Release|Any CPU
{FCDB7791-F4B6-4504-91BC-4D0291E317F3}.Release|Itanium.ActiveCfg = Release|Itanium
{FCDB7791-F4B6-4504-91BC-4D0291E317F3}.Release|Itanium.Build.0 = Release|Itanium
{FCDB7791-F4B6-4504-91BC-4D0291E317F3}.Release|x64.ActiveCfg = Release|x64
{FCDB7791-F4B6-4504-91BC-4D0291E317F3}.Release|x64.Build.0 = Release|x64
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
EndGlobal
Loading…
Cancel
Save