Exemple #1
0
        public override void Initialize()
        {
            MenuItemBase toolsMenu = MainMenu.All.FirstOrDefault(x => x.Name == "_Tools");

            if (toolsMenu == null)
            {
                toolsMenu = new MenuItem("_Tools");
                MainMenu.Add(toolsMenu);
            }

            toolsMenu.Add(new MenuItem("_Options", OpenSettings));
        }
Exemple #2
0
        public override void Initialize()
        {
            var toolsMenu = MainMenu.Find(KnownMenuItemNames.Tools);

            if (toolsMenu == null)
            {
                toolsMenu = new MenuItem(KnownMenuItemNames.Tools, "_Tools");
                MainMenu.Add(toolsMenu);
            }

            toolsMenu.Add(new MenuItem("_Options", OpenSettings));
        }