コード例 #1
0
ファイル: OptionsTreeControl.cs プロジェクト: odalet/CITray
        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;
        }
コード例 #2
0
 public OptionsSectionSelectedEventArgs(OptionsSection section, BaseOptionsPanel panel)
 {
     Section = section;
     Panel = panel;
 }
コード例 #3
0
ファイル: OptionsTreeControl.cs プロジェクト: odalet/CITray
 public SectionTag(OptionsSection optionsSection)
 {
     section = optionsSection;
 }
コード例 #4
0
ファイル: OptionsSection.cs プロジェクト: odalet/CITray
 public void AddChildSection(OptionsSection section)
 {
     if (section == null) throw new ArgumentNullException("section");
     sections.Add(section);
 }