private FatalError(Exception e) { Sentry.Log(e); InitializeComponent(); ex = e; ShowingInfo = true; TopMost = true; TopLevel = true; }
/// <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) { Logger.Exception("Fatal Error: ", e); Sentry.Log(e); using (FatalErrorDialog dialog = new FatalErrorDialog(e)) { dialog.ShowDialog(); } Application.Exit(); }