Esempio n. 1
0
        private void CurrentDomainOnUnhandledException(object sender, UnhandledExceptionEventArgs unhandledExceptionEventArgs)
        {
            // Exception on background thread
            var ex = unhandledExceptionEventArgs.ExceptionObject as Exception;

            if (ex != null)
            {
                ErrorForm.ShowErrorForm(ex);
            }
        }
Esempio n. 2
0
 private void ApplicationOnThreadException(object sender, ThreadExceptionEventArgs threadExceptionEventArgs)
 {
     ErrorForm.ShowErrorForm(threadExceptionEventArgs.Exception);
 }
Esempio n. 3
0
        public static void ShowErrorForm(Exception e)
        {
            var f = new ErrorForm(e);

            f.ShowDialog();
        }