Interaction logic for CrashWindow.xaml
Inheritance: System.Windows.Window
示例#1
0
        private void App_OnDispatcherUnhandledException(object sender, DispatcherUnhandledExceptionEventArgs args)
        {
#if !DEBUG
            args.Handled = true;
            var wnd = new CrashWindow(args.Exception);
            wnd.ShowDialog();
            Environment.Exit(1);
#endif
        }
示例#2
0
        private void App_OnDispatcherUnhandledException(object sender, DispatcherUnhandledExceptionEventArgs args)
        {
#if !DEBUG
            args.Handled = true;
            var wnd = new CrashWindow(args.Exception);
            wnd.ShowDialog();
            Environment.Exit(1);
#endif
        }