From b4a4afc3d01f37840c2e80f551096e99a48d9d2c Mon Sep 17 00:00:00 2001 From: Gavin Date: Sat, 9 Dec 2017 12:06:33 +0800 Subject: [PATCH] update example start device --- SCADA/Example/CoreTest.exe | Bin 252416 -> 252416 bytes SCADA/Program/CoreTest/StartDevice.xaml.cs | 8 +++--- SCADA/Program/FileDriver/FileDriver.sln | 32 --------------------- 3 files changed, 4 insertions(+), 36 deletions(-) delete mode 100644 SCADA/Program/FileDriver/FileDriver.sln diff --git a/SCADA/Example/CoreTest.exe b/SCADA/Example/CoreTest.exe index ac8459acb6920855d7fb420490fd7b62823fadf0..f8d38bddeeb19d670b737c252f339c357d74ebf9 100644 GIT binary patch delta 264 zcmZqJ!r!oke?kZI)CBE`-Lj0kCaw%;%$Ur`sLo>Wl9^$;U>}pr^n`dO!O4+~>Wl{_ zH!{{U&Y8@}B+Se5n1O+rfq}t-k%8^NW<{oqsf^DicTIO>7VCMo`P_6PPDue_1_tHO zV1_q`7#IYADwW+sJzaqGpUsjBYY!<2#xn#llrrQ2VI~l#Gcbs)$qLdFT;tW8uY2^^ z#bpcHwtBIzT5z0ktzQ0kI4t1A`CHfj+018G?dcg3a&!jI1-e@38lR zw{h^!jH2x^rdl@f5S}2Cwx(?7~Q6ObZKrF+^z~BLNm&a*lhM-`V;7ShW%Up98IxO`)e0pz{Ld*7q z)65)4|Xw|FitOsXF3D` D*cVXK diff --git a/SCADA/Program/CoreTest/StartDevice.xaml.cs b/SCADA/Program/CoreTest/StartDevice.xaml.cs index e9e8b61..bc6be69 100644 --- a/SCADA/Program/CoreTest/StartDevice.xaml.cs +++ b/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(); }); diff --git a/SCADA/Program/FileDriver/FileDriver.sln b/SCADA/Program/FileDriver/FileDriver.sln deleted file mode 100644 index efbe36a..0000000 --- a/SCADA/Program/FileDriver/FileDriver.sln +++ /dev/null @@ -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