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; }
public SectionTag(OptionsSection optionsSection) { section = optionsSection; }
public void AddChildSection(OptionsSection section) { if (section == null) throw new ArgumentNullException("section"); sections.Add(section); }