Пример #1
0
        public Category(XmlNode node)
        {
            Selector     = CategorySelector.CreateSelectors(node);
            Field        = node.ReadStr("@dstfield");
            FieldIsEvent = Field.Contains('/');

            XmlNodeList subNodes = node.SelectNodes(node.Name);

            if (subNodes.Count > 0)
            {
                SubCats = new Category[subNodes.Count];
                for (int i = 0; i < subNodes.Count; i++)
                {
                    SubCats[i] = Create(subNodes[i]);
                }
            }
        }
Пример #2
0
 public CatergoryOrSelector(XmlNode node)
 {
     items = new List <ICategorySelector>();
     CategorySelector.CreateChildSelectors(items, node);
 }
Пример #3
0
 public CatergoryAndSelector(System.Xml.XmlNode node)
 {
     items = new List <ICategorySelector>();
     CategorySelector.CreateChildSelectors(items, node);
 }