xxe 2 years ago
parent
commit
b36240993d
1 changed files with 0 additions and 21 deletions
  1. +0
    -21
      HKCardOUT/ViewModels/RootViewModel.cs

+ 0
- 21
HKCardOUT/ViewModels/RootViewModel.cs View File

@@ -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
}
}

Loading…
Cancel
Save