void Current_DispatcherUnhandledException(object sender, DispatcherUnhandledExceptionEventArgs e) { e.Handled = true; var window = new UnhandledExceptionWindow(e.Exception); window.ShowDialog(); }
void CurrentDomain_UnhandledException(object sender, UnhandledExceptionEventArgs e) { var window = new UnhandledExceptionWindow(e.ExceptionObject as Exception); window.ShowDialog(); }