/// <summary> /// Shows the form and ends the program after an exception makes it to the top level. /// </summary> /// <param name="e">The unhandled exception.</param> private static void HandleUnhandledException(Exception e) { FatalError errForm = new FatalError(e); errForm.ShowDialog(); Application.Exit(); }
/// <summary> /// Shows the form and ends the program after an exception makes it to the top level. /// </summary> /// <param name="e">The unhandled exception.</param> private static void HandleUnhandledException(Exception e) { Program.Logger.WriteException("Fatal Error: ", e); FatalError errForm = new FatalError(e); errForm.ShowDialog(); Application.Exit(); }
/// <summary> /// Shows the form and ends the program after an exception makes it to the top level. /// </summary> /// <param name="e">The unhandled exception.</param> private static void HandleUnhandledException( Exception e ) { FatalError errForm = new FatalError( e ); errForm.ShowDialog(); Application.Exit(); }