Exemplo n.º 1
0
        public SectionMenu(ConfigEntitySection section)
        {
            DisplayStyle = ToolStripItemDisplayStyle.Text;

            base.AutoSize = true;

            Text            = section.Name;
            SelectedSection = section;
        }
Exemplo n.º 2
0
        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);
            }
        }
Exemplo n.º 3
0
        void LoadConfigNodes(ConfigEntitySection configs, TreeNode root)
        {
            foreach (ConfigEntitySection section in configs.Sections)
            {
                SectionNode node = new SectionNode(section);

                node.ContextMenuStrip = contextMenuStrip2;
                LoadConfigNodes(section, node);
                node.ImageIndex = 0;
                root.Nodes.Add(node);
            }

            foreach (ConfigFileEntity config in configs.List)
            {
                ConfigNode node = new ConfigNode(config);
                node.ContextMenuStrip = contextMenuStrip1;
                node.ImageIndex       = 2;
                root.Nodes.Add(node);
            }
        }
Exemplo n.º 4
0
 public SectionNode(ConfigEntitySection section)
 {
     ImageIndex      = 0;
     Text            = section.Name;
     SelectedSection = section;
 }