public static void Main(string[] args)
        {
            ExceptionHandler.Initialize();

            var app    = new Application();
            var window = new MainWindow();

            app.Run(window);
        }
Beispiel #2
0
        public static void Main(string[] args)
        {
            ExceptionHandler.Initialize();
            DialogService.ShowMessageBoxEvent += message => MessageBox.Show(message);
            ClipboardService.Set += Clipboard.SetText;

            var app    = new Application();
            var window = new MainWindow();

            app.Run(window);
        }
Beispiel #3
0
        public static void Main(string[] args)
        {
            ExceptionHandler.Initialize();
            DialogService.ShowMessageBoxEvent += message => MessageBox.Show(message);
            ClipboardService.Set += Clipboard.SetText;

            var app = new Application();

            app.DispatcherUnhandledException += OnDispatcherUnhandledException;
            var window = new MainWindow();

            app.Run(window);

            // wait for potential background operations to finish before shutting down
            window.InProgressTask.Wait();
        }