ErrorReport.xaml 的互動邏輯
Esempio n. 1
0
        private void Dispatcher_UnhandledException(object sender, System.Windows.Threading.DispatcherUnhandledExceptionEventArgs e)
        {
            e.Handled = true;
            if (e.Exception is XamlParseException)
            {
                if (e.Exception.InnerException != null)
                {
                    if (e.Exception.InnerException is FileLoadException)
                    {

                        return;
                    }
                }
            }
            var crash = new ErrorReport(e.Exception);
            crash.Show();
        }
Esempio n. 2
0
 void TaskScheduler_UnobservedTaskException(object sender, UnobservedTaskExceptionEventArgs e)
 {
     e.SetObserved();
     MeCore.Invoke(new Action(()=> {
         var crash = new ErrorReport(e.Exception);
         crash.Show();
     }));
 }
Esempio n. 3
0
 private void CurrentDomain_UnhandledException(object sender, UnhandledExceptionEventArgs e)
 {
     var crash = new ErrorReport(e.ExceptionObject as Exception);
     crash.Show();
 }