From 3d627f4b449ee039b1d4d2905cee825675513cd0 Mon Sep 17 00:00:00 2001 From: xxe Date: Fri, 7 Oct 2022 10:08:03 +0800 Subject: [PATCH] 123 --- HKCardOUT/HKCardOUT.csproj | 4 ++-- HKCardOUT/Views/RootView.xaml.cs | 20 ++++++++++---------- 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/HKCardOUT/HKCardOUT.csproj b/HKCardOUT/HKCardOUT.csproj index 83dc1c7..46b050f 100644 --- a/HKCardOUT/HKCardOUT.csproj +++ b/HKCardOUT/HKCardOUT.csproj @@ -14,9 +14,9 @@ 1.0.0.0 AnyCPU;x86 - + TRACE;Core diff --git a/HKCardOUT/Views/RootView.xaml.cs b/HKCardOUT/Views/RootView.xaml.cs index ab7fb8f..565ffa4 100644 --- a/HKCardOUT/Views/RootView.xaml.cs +++ b/HKCardOUT/Views/RootView.xaml.cs @@ -15,16 +15,16 @@ namespace HKCardOUT.Views public RootView() { InitializeComponent(); - //if (!StartEXE.IsExistKey("HKCardOUT")) - //{ - // var Paths = Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "HKCardOUT.exe"); - // StartEXE.SelfRunning(true, "HKCardOUT", Paths); - //} - //else if (StartEXE.IsExistKey("HKCardOUT")) - //{ - // var Paths = Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "HKCardOUT.exe"); - // StartEXE.SelfRunning(false, "HKCardOUT", Paths); - //} + if (!StartEXE.IsExistKey("HKCardOUT")) + { + var Paths = Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "HKCardOUT.exe"); + StartEXE.SelfRunning(true, "HKCardOUT", Paths); + } + else if (StartEXE.IsExistKey("HKCardOUT")) + { + var Paths = Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "HKCardOUT.exe"); + StartEXE.SelfRunning(false, "HKCardOUT", Paths); + } this.Loaded += RootView_Loaded; }