Пример #1
0
 private static void CurrentDomain_UnhandledException(object sender, UnhandledExceptionEventArgs e)
 {
     ErrorHandleHelper.SetupBugReport(
         "Wlan-edu Manager",
         "Login",
         typeof(Program).Assembly.Location,
         exception: ((Exception)e.ExceptionObject)
         );
 }
Пример #2
0
        private static void CurrentDomain_UnhandledException(object sender, UnhandledExceptionEventArgs e)
        {
            ErrorHandleHelper.SetupBugReport(
                "Wlan-edu Manager",
                "ManagerGUI.WPF",
                typeof(App).Assembly.Location,
                exception: (Exception)e.ExceptionObject
                );

            Application.Current.Shutdown(-1);
        }
Пример #3
0
        private static void Application_ThreadException(object sender, System.Threading.ThreadExceptionEventArgs e)
        {
            ErrorHandleHelper.SetupBugReport(
                "Wlan-edu Manager",
                "ManagerGUI.WinForm",
                typeof(Program).Assembly.Location,
                exception: e.Exception
                );

            Application.Exit();
        }
Пример #4
0
        private void Application_DispatcherUnhandledException(object sender, DispatcherUnhandledExceptionEventArgs e)
        {
            e.Handled = true;
            ErrorHandleHelper.SetupBugReport(
                "Wlan-edu Manager",
                "ManagerGUI.WPF",
                typeof(App).Assembly.Location,
                exception: e.Exception
                );

            Application.Current.Shutdown(-1);
        }