// ReSharper disable once UnusedMember.Local // ReSharper disable once UnusedParameter.Local void TaskScheduler_UnobservedTaskException(object sender, UnobservedTaskExceptionEventArgs e) { e.SetObserved(); var crash = new CrashHandle(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; if (e.Exception is XamlParseException) { if (e.Exception.InnerException != null) { if (e.Exception.InnerException is FileLoadException) { //TODO 资源加载 return; } } } var crash = new CrashHandle(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 CrashHandle(e.Exception); crash.Show(); }
private void CurrentDomain_UnhandledException(object sender, UnhandledExceptionEventArgs e) { var crash = new CrashHandle(e.ExceptionObject as Exception); crash.Show(); }