删除原先一些重复代码,使用了ClientsLibrary代码实现

This commit is contained in:
dathlin
2017-07-12 13:13:43 +08:00
parent 6c7129c6c1
commit cb3e4ec519
24 changed files with 31 additions and 2021 deletions

View File

@@ -26,7 +26,7 @@ namespace 软件系统客户端Wpf
{
base.OnStartup(e);
//捕获未处理的异常
AppDomain.CurrentDomain.UnhandledException += CurrentDomain_UnhandledException;
AppDomain.CurrentDomain.UnhandledException += ClientsLibrary.UserClient.CurrentDomain_UnhandledException;
Process process = Process.GetCurrentProcess();
//遍历应用程序的同名进程组
@@ -71,11 +71,7 @@ namespace 软件系统客户端Wpf
}
}
private void CurrentDomain_UnhandledException(object sender, UnhandledExceptionEventArgs e)
{
}
[DllImport("User32.dll")]
private static extern bool ShowWindowAsync(IntPtr hWnd, int cmdShow);