|
@@ -15,16 +15,16 @@ namespace HKCardOUT.Views |
|
|
public RootView() |
|
|
public RootView() |
|
|
{ |
|
|
{ |
|
|
InitializeComponent(); |
|
|
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; |
|
|
this.Loaded += RootView_Loaded; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|