public LauncherInitializer() { try { settingsManager = new SettingsManager(); settingsManager.LoadSettings(); launcherManager = new LauncherManager(); loadLanguage(); if (launcherManager.LauncherIsRunning) { MessageBox.Show(LanguageManager.GetString(7), "Launcher already running!", MessageBoxButton.OK, MessageBoxImage.Stop); Environment.Exit(0); } var configs = new LauncherConfigurationsManager(); configs.LoadInternalConfigs(); configs.OnConfigurationsLoaded += OnLoadConfigurationsComplete; } catch (Exception e) { LogManager.WriteLog("Error on initializer Launcher: " + e.Message); } }
internal LauncherInitializer() { _launcherManager = new LauncherManager(); }