Beispiel #1
0
 private void LoadList(String path)
 {
     if (path != null && File.Exists(path))
     {
         var map = new OptionsMapModel() { Path = path, Options = Serializer<Options>.Deserialize(_propertiesFilePath) };
         _optionsMap.Add(map);
         //_optionsAll.AddRange(map.Options);
     }
 }
Beispiel #2
0
        private void AddList(IEnumerable <Option> options, String path)
        {
            _optionsAll.AddRange(options);

            var map = new OptionsMapModel()
            {
                Path = path, Options = new Options(options)
            };

            _optionsMap.Add(map);
        }
Beispiel #3
0
 private void LoadList(String path)
 {
     if (path != null && File.Exists(path))
     {
         var map = new OptionsMapModel()
         {
             Path = path, Options = Serializer <Options> .Deserialize(_propertiesFilePath)
         };
         _optionsMap.Add(map);
         //_optionsAll.AddRange(map.Options);
     }
 }
Beispiel #4
0
        private void AddList(IEnumerable<Option> options, String path)
        {
            _optionsAll.AddRange(options);
            
            var map = new OptionsMapModel() { Path = path, Options = new Options(options) };

            _optionsMap.Add(map);
        }