Ejemplo n.º 1
0
 private void LoadConfigList()
 {
     foreach (var config in Settings.Default.ConfigList)
     {
         _configList.Add(config);
         var runner = new ConfigRunner(config, _logger, _uiControl);
         _configRunners.Add(config.Name, runner);
     }
 }
Ejemplo n.º 2
0
        private void InsertConfiguration(SkylineBatchConfig config, int index, Operation operation = Operation.Insert)
        {
            lock (_lock)
            {
                CheckIfExists(config, false, operation);
                Program.LogInfo(string.Format("Adding configuration \"{0}\"", config.Name));
                _configList.Insert(index, config);

                var newRunner = new ConfigRunner(config, _logger, _uiControl);
                _configRunners.Add(config.Name, newRunner);
            }
        }