ErrorReport.xaml 的互動邏輯
Example #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();
        }
Example #2
0
 void TaskScheduler_UnobservedTaskException(object sender, UnobservedTaskExceptionEventArgs e)
 {
     e.SetObserved();
     MeCore.Invoke(new Action(()=> {
         var crash = new ErrorReport(e.Exception);
         crash.Show();
     }));
 }
Example #3
0
 private void CurrentDomain_UnhandledException(object sender, UnhandledExceptionEventArgs e)
 {
     var crash = new ErrorReport(e.ExceptionObject as Exception);
     crash.Show();
 }