Example #1
0
 public void UpdateConfig(Stage2Config config)
 {
     if (!Stage2Config.Equals(config)) {
         Stage2Config = config;
         SaveConfig();
     }
 }
Example #2
0
        private void SetDefaults()
        {
            DefaultSearchConfig defaults = DefaultSearchConfig.Read(_basePath);

            Stage1Config = new Stage1Config();
            Stage2Config = new Stage2Config {
                ForbiddenCountries = defaults.ForbiddenCountries,
                ForbiddenAirports = new string[0],
                StartAirports = defaults.HomeAirports,
                FinishAirports = defaults.HomeAirports,
                MinimalStopHours = defaults.MinimalStopHours,
                ChainDepth = defaults.ChainDepth,
            };
            Stage3Config = new Stage3Config {
                SelectedCountries = new string[0]
            };
        }