Interaction logic for CrashWindow.xaml
Inheritance: System.Windows.Window
        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
        }
        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
        }