protected override async void OnStartup(StartupEventArgs e) { base.OnStartup(e); // Longest loading await LongLoading(); MainWindow = new FlatWindow(); // Shortest loading if (!await this.ShortLoading()) { MainWindow.Show(); AddUserWindow mailConfigurationWindow = new AddUserWindow(); mailConfigurationWindow.Show(); } else { //MainWindow.Show(); MainWindow.Show(); } splashScreen.Close(); splashScreen = null; }
public App() { ApplicationLanguage = LanguageManager.GetInstance; splashScreen = new SplashScreen.SplashScreen(); splashScreen.Show(); }