Exemplo n.º 1
0
        private TreeNode AddSection(OptionsSection section, TreeNode parent)
        {
            var tag = new SectionTag(section);
            tags.Add(tag);
            var node = new TreeNode(section.DisplayName);
            node.Tag = tag;

            if (parent == null)
                optionsTree.Nodes.Add(node);
            else parent.Nodes.Add(node);

            foreach (var childSection in section.Sections)
                AddSection(childSection, node);

            return node;
        }
 public OptionsSectionSelectedEventArgs(OptionsSection section, BaseOptionsPanel panel)
 {
     Section = section;
     Panel = panel;
 }
Exemplo n.º 3
0
 public SectionTag(OptionsSection optionsSection)
 {
     section = optionsSection;
 }
Exemplo n.º 4
0
 public void AddChildSection(OptionsSection section)
 {
     if (section == null) throw new ArgumentNullException("section");
     sections.Add(section);
 }