/// <summary> /// This method gets fired when an unhandled excpetion occurs in <see cref="MainForm"/>. /// </summary> private static void MacLauncher_UnhandledException(object sender, Eto.UnhandledExceptionEventArgs e) { log.Error("An unhandled exception has occurred: \n*****Stack Trace*****\n\n" + e.ExceptionObject); Application.Instance.Invoke(() => { MessageBox.Show(Language.Text.UnhandledException + "\n*****Stack Trace*****\n\n" + e.ExceptionObject, "Mac", MessageBoxType.Error); }); }
/// <summary> /// This method gets fired when an unhandled excpetion occurs in <see cref="MainForm"/>. /// </summary> private static void WinLauncher_UnhandledException(object sender, Eto.UnhandledExceptionEventArgs e) { log.Error("An unhandled exception has occurred: \n*****Stack Trace*****\n\n" + e.ExceptionObject); MessageBox.Show(Language.Text.UnhandledException + "\n*****Stack Trace*****\n\n" + e.ExceptionObject, "Microsoft .NET Framework", MessageBoxType.Error); }