示例#1
0
文件: SectionNode.cs 项目: xqgzh/Z
        public SectionMenu(ConfigEntitySection section)
        {
            DisplayStyle = ToolStripItemDisplayStyle.Text;

            base.AutoSize = true;

            Text = section.Name;
            SelectedSection = section;
        }
示例#2
0
文件: WinForm.cs 项目: xqgzh/Z
        void LoadConfigNodes(ConfigEntitySection configs, ToolStripDropDownItem root)
        {
            foreach (ConfigEntitySection section in configs.Sections)
            {
                SectionMenu node = new SectionMenu(section);

                LoadConfigNodes(section, node);
                root.DropDownItems.Add(node);
            }

            foreach (ConfigFileEntity config in configs.List)
            {
                ConfigMenu node = new ConfigMenu(config);
                root.DropDownItems.Add(node);
            }
        }
示例#3
0
文件: SectionNode.cs 项目: xqgzh/Z
 public SectionNode(ConfigEntitySection section)
 {
     ImageIndex = 0;
     Text = section.Name;
     SelectedSection = section;
 }