private async void Current_Startup(object sender, StartupEventArgs e) { var startupArguments = new StartupArguments(); startupArguments.Parse(e.Args); if (!string.IsNullOrEmpty(startupArguments.Culture)) { Thread.CurrentThread.CurrentCulture = Thread.CurrentThread.CurrentUICulture = new CultureInfo(startupArguments.Culture); } var splashScreen = new SplashScreen(LocalizationHelper.GetResourceManager().GetString("TXT_SPLASH_SCREEN_PATH")); splashScreen.Show(false); CheckForUpdates(); await AsyncHelper.CallSync(InitialiseApplication); splashScreen.Close(new TimeSpan(0, 0, 0)); var window = new LogInWindow(); if (window.ShowDialog() == true) { ShutdownMode = ShutdownMode.OnMainWindowClose; MainWindow = new MainWindow(); MainWindow.ShowDialog(); } else { Current.Shutdown(); } }