Exemplo n.º 1
0
        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);
            }
        }
Exemplo n.º 2
0
 internal LauncherInitializer()
 {
     _launcherManager = new LauncherManager();
 }