private async void Application_Startup(object sender, StartupEventArgs e) { Current.ShutdownMode = ShutdownMode.OnExplicitShutdown; await StartupAndExit.PerformStartupActions(); MainWindow = new MainWindowView(); MainWindow.Show(); }
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; }