Esempio n. 1
0
        public HTXMLNode(XElement element)
        {
            this.element  = element;
            this.children = new Dictionary <string, HTXMLNode>();

            if (this.GetColor() != Colors.Black)
            {
                this.exCount += 1;
            }
            if (!IsLeaf())
            {
                foreach (var e in element.Elements("entry"))
                {
                    HTXMLNode child = new HTXMLNode(e);

                    this.exCount += child.GetExtensionCount();
                    AddChild(child);
                    //Debug.WriteLine("entry:" + e.Attribute("name").Value);
                }
            }
            Debug.WriteLine("entry:" + this.element.Attribute("name").Value + "exCount:" + this.GetExtensionCount());
        }
Esempio n. 2
0
        public HTXMLNode(XElement element)
        {
            this.element = element;
            this.children = new Dictionary<string, HTXMLNode>();

            if (this.GetColor() != Colors.Black)
            {
                this.exCount += 1;
            }
            if (!IsLeaf())
            {

                foreach (var e in element.Elements("entry"))
                {
                    HTXMLNode child = new HTXMLNode(e);

                    this.exCount += child.GetExtensionCount();
                    AddChild(child);
                    //Debug.WriteLine("entry:" + e.Attribute("name").Value);
                }
            }
            Debug.WriteLine("entry:" + this.element.Attribute("name").Value + "exCount:" + this.GetExtensionCount());
        }