/// <summary>
 ///     add a parameter to already loaded configuration
 /// </summary>
 /// <param name="setting"></param>
 public void AddSetting(Setting setting)
 {
     Settings.Add(setting);
 }
        private void LoadSettings()
        {
            XmlElement root = GetXmlRoot();

            XmlNodeList settingsList = root.SelectNodes(@"setting");

            if (settingsList != null)
            {
                foreach (XmlNode xmlSetting in settingsList)
                {
                    var element = (XmlElement) xmlSetting;
                    string comment = "";
                    if (commentsIniFile != null)
                    {
                        comment = commentsIniFile.GetString(_nameSpace, element.Attributes["name"].Value, "N/A");
                    }

                    var newSetting = new Setting
                    {
                        Comment = comment,
                        Name = element.Attributes["name"].Value,
                        SerializeAs = element.Attributes["serializeAs"].Value,
                        Value = element.FirstChild.InnerText // <value>text</value>
                    };

                    AddSetting(newSetting);
                }
            }
        }
 public SettingPropertyDescriptor(Setting setting, string category)
     : base(setting.Name, null)
 {
     _setting = setting;
     _category = category;
 }