public static bool Show(Exception exception)
        {
            ErrorMessageBox messageBox = new ErrorMessageBox(exception);
            var             result     = messageBox.ShowDialog();

            return(result.HasValue && result.Value);
        }
Пример #2
0
 private void OnDispatcherUnhandledException(object sender, DispatcherUnhandledExceptionEventArgs e)
 {
     if (ErrorMessageBox.Show(e.Exception))
     {
         Environment.Exit(0);
     }
     e.Handled = true;
 }