public ConfigProperty GetPropertyByIndex(int index)
 {
     if (_properties == null)
     {
         _properties = new ConfigPropertyList();
     }
     if (index >= 0 && index < _properties.Properties.Count)
     {
         return(_properties.Properties[index]);
     }
     return(null);
 }
        public object Clone()
        {
            ConfigPropertyList pl = new ConfigPropertyList();

            pl._catNode = _catNode;
            if (_properties != null)
            {
                pl._properties = new List <ConfigProperty>();
                foreach (ConfigProperty p in _properties)
                {
                    pl._properties.Add((ConfigProperty)p.Clone());
                }
            }
            return(pl);
        }
        public ConfigProperty GetPropertyByName(string name)
        {
            if (_properties == null)
            {
                _properties = new ConfigPropertyList();
            }
            foreach (ConfigProperty p in _properties.Properties)
            {
                if (string.CompareOrdinal(p.DataName, name) == 0)
                {
                    return(p);
                }
            }
            ConfigProperty p0 = CreateConfigProperty(name);

            return(p0);
        }
 public void RemoveAllProperties()
 {
     _properties = new ConfigPropertyList();
 }
 public ConfigCategory(XmlNode node)
 {
     _xmlNode    = node;
     _name       = XmlUtil.GetNameAttribute(_xmlNode);
     _properties = new ConfigPropertyList(_xmlNode);
 }