Example #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);
     }
 }
Example #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);
        }
Example #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);
     }
 }
Example #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);
        }