private void Application_DispatcherUnhandledException(object sender, DispatcherUnhandledExceptionEventArgs e) { if (DoHandle) { GetArtemisExceptionViewer(e.Exception).ShowDialog(); e.Handled = true; } else { GetArtemisExceptionViewer(e.Exception).ShowDialog(); e.Handled = false; } }