Beispiel #1
0
 /// <summary>
 /// 处理UI线程异常
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 static void Application_ThreadException(object sender, System.Threading.ThreadExceptionEventArgs e)
 {
     LogHelper.WriteLog(e.GetType(), e.Exception);
     CommonUtil.WriteLog(e.Exception);
     Msg.ShowError(e.Exception.Message);
 }