Exemple #1
0
        private async void Application_Startup(object sender, StartupEventArgs e)
        {
            Current.ShutdownMode = ShutdownMode.OnExplicitShutdown;

            await StartupAndExit.PerformStartupActions();

            MainWindow = new MainWindowView();
            MainWindow.Show();
        }
Exemple #2
0
        private async void Application_Startup(object sender, StartupEventArgs e)
        {
            Current.ShutdownMode = ShutdownMode.OnMainWindowClose;
            Environment.ExitCode = -1;

            await StartupAndExit.PerformStartupActions();

            MainWindow = new MainWindowView();
            MainWindow.ShowDialog();

            Environment.ExitCode = -10;
        }