Пример #1
0
        protected override VSMenu SetupMenuItems()
        {
            VSMenu        vSMenu        = new VSMenu(this, "Build Version Increment");
            VSMenuCommand vSMenuCommand = vSMenu.AddCommand("OnlineVersionCheck", "Check for a new version.", "Check online for a new version of this addin.");

            vSMenuCommand.Execute += new EventHandler(this.MenuVersionCheck_Execute);
            VSMenuCommand vSMenuCommand2 = vSMenu.AddCommand("BuildVersionIncrementSettings", "Settings", "Configure BuildVersionIncrement.");

            vSMenuCommand2.Execute     += new EventHandler(this.DisplayAddinSettings);
            vSMenuCommand2.QueryStatus += new EventHandler <VSMenuQueryStatusEventArgs>(this.MenuSettingsQueryStatus);
            return(vSMenu);
        }
Пример #2
0
        /// <summary>
        /// Override this to create your menu items here.
        /// </summary>
        /// <returns>The root menu item.</returns>
        protected override VSMenu SetupMenuItems()
        {
            VSMenu rootMenu = new VSMenu(this, "Build Version Increment");

            VSMenuCommand versionCheck = rootMenu.AddCommand("OnlineVersionCheck", "Check for a new version.",
                                                             "Check online for a new version of this addin.");

            //versionCheck.Button.FaceId = 1922;
            versionCheck.Execute += new EventHandler(MenuVersionCheck_Execute);


            VSMenuCommand settingsCmd = rootMenu.AddCommand("BuildVersionIncrementSettings", "Settings",
                                                            "Configure BuildVersionIncrement.");

            //settingsCmd.Button.FaceId = 0642;
            settingsCmd.Execute     += new EventHandler(DisplayAddinSettings);
            settingsCmd.QueryStatus += new EventHandler <VSMenuQueryStatusEventArgs>(MenuSettingsQueryStatus);
            return(rootMenu);
        }