internal SettingsGroup(string name, string xmlNodeName) { XmlNodeName = xmlNodeName; Name = name; InheritSettingsType = new InheritSettingsType(); foreach (SettingProperty value2 in SettingProperties.Values) { ISetting value = (ISetting)Activator.CreateInstance(value2.Property.PropertyType, value2.Attribute.DefaultValue); value2.Property.SetValue(this, value, null); } }
internal void InheritSettings(RdcTreeNode node, ref bool anyInherited) { GroupBase inheritedSettingsNode = InheritSettingsType.GetInheritedSettingsNode(node); if (inheritedSettingsNode != null) { inheritedSettingsNode.InheritSettings(); Copy(inheritedSettingsNode); anyInherited = true; } }
internal void WriteXml(XmlTextWriter tw, RdcTreeNode node) { if (InheritSettingsType.Mode != 0) { tw.WriteStartElement(XmlNodeName); if (InheritSettingsType.Mode != InheritanceMode.Disabled) { InheritSettingsType.WriteXml(tw); } WriteSettings(tw, node); tw.WriteEndElement(); } }
public void UpdateControlsFromSettings(InheritSettingsType settings) { bool flag = settings.Mode == InheritanceMode.FromParent; if (flag != FromParentCheck.Checked) { FromParentCheck.Checked = flag; } else { OnSettingChanged(); } }