/// <summary> /// Adds a new settings group to the configuration file. /// </summary> /// <param name="groupName">The name of the group.</param> /// <returns>The newly created SettingsGroup.</returns> public SettingsGroup AddSettingsGroup(string groupName) { if (SettingGroups.ContainsKey(groupName)) throw new Exception("Group already exists with name '" + groupName + "'"); SettingsGroup group = new SettingsGroup(groupName); SettingGroups.Add(groupName, group); return group; }
/// <summary> /// Adds a new settings group to the configuration file. /// </summary> /// <param name="groupName">The name of the group.</param> /// <returns>The newly created SettingsGroup.</returns> public SettingsGroup AddSettingsGroup(string groupName) { if (_groups.ContainsKey(groupName)) { throw new Exception("Group already exists with name '" + groupName + "'"); } SettingsGroup group = new SettingsGroup(groupName); _groups.Add(groupName, group); return(group); }