public void AddChild (ConfigInfo data) { data.Parent = this; if (data is SectionInfo) { if (sections == null) sections = new ConfigInfoCollection (); sections [data.Name] = data; } else { if (groups == null) groups = new ConfigInfoCollection (); groups [data.Name] = data; } }
public void AddChild(ConfigInfo data) { data.Parent = this; if (data is SectionInfo) { if (_sections == null) { _sections = new ConfigInfoCollection(); } _sections[data.Name] = data; } else { if (_groups == null) { _groups = new ConfigInfoCollection(); } _groups[data.Name] = data; } }
public void AddChild(ConfigInfo data) { modified = true; data.Parent = this; if (data is SectionInfo) { if (sections == null) { sections = new ConfigInfoCollection(); } sections [data.Name] = data; } else { if (groups == null) { groups = new ConfigInfoCollection(); } groups [data.Name] = data; } }