// ReSharper disable once UnusedMember.Local // ReSharper disable once UnusedParameter.Local void TaskScheduler_UnobservedTaskException(object sender, UnobservedTaskExceptionEventArgs e) { e.SetObserved(); var crash = new CrashWindow(e.Exception); crash.Show(); }
// ReSharper disable once UnusedMember.Local // ReSharper disable once UnusedParameter.Local private void Dispatcher_UnhandledException(object sender, System.Windows.Threading.DispatcherUnhandledExceptionEventArgs e) { e.Handled = true; var crash = new CrashWindow(e.Exception); crash.Show(); }