Esempio n. 1
0
        public void LoadNodesAgain(XmlElement element)
        {
            var sections = element.GetElementsByTagName("section");

            foreach (XmlElement _section in sections)
            {
                Board section = this.Sections[_section.GetAttribute("id")];
                section.Children.Clear();
                section.LoadNodes(_section);
            }
        }
Esempio n. 2
0
        public void LoadNodes(XmlElement element)
        {
            var sections = element.GetElementsByTagName("section");

            foreach (XmlElement _section in sections)
            {
                Tab tab = new Tab();
                tab.Title = _section.GetAttribute("title");
                tab.ID    = _section.GetAttribute("id");
                this.tabBar.Tabs.Add(tab);
                Board childBoard = new Board(this);
                Sections.Add(tab.ID, childBoard);
                childBoard.LoadNodes(_section);
                this.deck.Controls.Add(childBoard);
                this.deck = DockStyle.Fill;
            }
        }