void CurrentDomain_UnhandledException(object sender, UnhandledExceptionEventArgs e) { ExceptionWindow exWin = new ExceptionWindow(); exWin.SetException(e.ExceptionObject as Exception); exWin.ShowDialog(); }
public bool ShowException(Exception exception) { LastException = exception; WriteLog(); ExceptionWindow = new ExceptionWindow(); ExceptionWindow.SetException(LastException); var showDialog = ExceptionWindow.ShowDialog(); return(showDialog != null && (bool)showDialog); }
void CurrentDomain_UnhandledException(object sender, UnhandledExceptionEventArgs e) { ExceptionWindow exWin = new ExceptionWindow(); exWin.SetException(e.ExceptionObject as Exception); exWin.ShowDialog(); }