Пример #1
0
 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);
     }
 }
Пример #2
0
        internal void InheritSettings(RdcTreeNode node, ref bool anyInherited)
        {
            GroupBase inheritedSettingsNode = InheritSettingsType.GetInheritedSettingsNode(node);

            if (inheritedSettingsNode != null)
            {
                inheritedSettingsNode.InheritSettings();
                Copy(inheritedSettingsNode);
                anyInherited = true;
            }
        }
Пример #3
0
 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();
     }
 }
Пример #4
0
        public void UpdateControlsFromSettings(InheritSettingsType settings)
        {
            bool flag = settings.Mode == InheritanceMode.FromParent;

            if (flag != FromParentCheck.Checked)
            {
                FromParentCheck.Checked = flag;
            }
            else
            {
                OnSettingChanged();
            }
        }