Exemple #1
0
        public void Open()
        {
            if (this.IsLeaf)
            {
                return;
            }

            // load children if not loaded before
            if (this.Children.Count == 0)
            {
                System.Xml.XmlElement parentEl = Schema.GetMemberChildren(this.UniqueName, false);
                LoadChildrenFromXmlSchema(parentEl);
            }

            this._isOpen = true;

            // update hierarchy's open nodes
            Schema.OpenNode(this.UniqueName);
        }
        public void Open()
        {
            if (this.IsLeaf)
            {
                return;
            }

            if (this.Children.Count > 0)
            {
                this._isOpen = true;
                return;
            }

            //get from schema and load
            System.Xml.XmlElement parentEl = Schema.GetMemberChildren(this.UniqueName, false);
            LoadChildrenFromXmlSchema(parentEl);
            this._isOpen = true;

            // update hierarchy's open nodes
            if (Schema.OpenNodes.Contains(this.UniqueName) == false)
            {
                Schema.OpenNodes.Add(this.UniqueName);
            }
        }