|
|
@@ -37,7 +37,6 @@ namespace HKCardOUT.ViewModels |
|
|
|
this.Closed += RootViewModel_Closed; |
|
|
|
ProcessCard(); |
|
|
|
InsertData(); |
|
|
|
//LtensenScreen(); |
|
|
|
} |
|
|
|
|
|
|
|
/// <summary> |
|
|
@@ -291,25 +290,5 @@ namespace HKCardOUT.ViewModels |
|
|
|
private static ConcurrentQueue<SaleLogDto> Stacks = new ConcurrentQueue<SaleLogDto>(); |
|
|
|
#endregion |
|
|
|
|
|
|
|
#region 屏幕监听 |
|
|
|
private void LtensenScreen() |
|
|
|
{ |
|
|
|
ThreadManage.GetInstance().StartLong(() => |
|
|
|
{ |
|
|
|
var scCount = System.Windows.Forms.Screen.AllScreens.Count(); |
|
|
|
if (scCount >= 3) |
|
|
|
{ |
|
|
|
var pc = Process.GetProcesses().Where(t => t.ProcessName.Equals("HKLinsten")).FirstOrDefault(); |
|
|
|
if (pc == null) |
|
|
|
{ |
|
|
|
var path = Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "HKLinsten.exe"); |
|
|
|
Process.Start(path); |
|
|
|
App.Current.Dispatcher.Invoke(() => App.Current.Shutdown(0)); |
|
|
|
} |
|
|
|
} |
|
|
|
Thread.Sleep(10000); |
|
|
|
}, "屏幕监听", true); |
|
|
|
} |
|
|
|
#endregion |
|
|
|
} |
|
|
|
} |