Exemplo n.º 1
0
        /// <summary>
        /// Find the sub menu contained within this menu.
        /// </summary>
        /// <param name="InName"></param>
        /// <returns></returns>
        public DTE_Menu FindMenuControl(string InName)
        {
            DTE_Menu          foundMenu = null;
            CommandBarControl control   = FindControl(InName);

            if ((control != null) && (control.Type == MsoControlType.msoControlPopup))
            {
                foundMenu = new DTE_Menu(mMain, control);
            }
            return(foundMenu);
        }
Exemplo n.º 2
0
 public void RemoveMenuControl(DTE_Menu InSubMenu)
 {
     EnvDTE.Commands commands = mMain.Commandsx;
     commands.RemoveCommandBar(InSubMenu.mBar);
 }