private static void HandleUnhandledException(object sender, UnhandledExceptionEventArgs e) { Exception ex = (Exception)e.ExceptionObject; FormExceptionDialog.OpenDialog(ex); }
private static void HandleThreadException(object sender, ThreadExceptionEventArgs e) { Exception ex = e.Exception; FormExceptionDialog.OpenDialog(ex); }