protected override void SetupMenu(SectionMenu menu)
 {
     menu.AddMenuButton(new ImageButton
     {
         ImageUrl = ResolveUrl("/images/ui/save.gif"),
         CssClass = "menuButton menuButtonSave editorIcon"
     });
 }
Exemple #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);
            }
        }