Esempio n. 1
0
        public void QueryStatus(string commandName, vsCommandStatusTextWanted neededText, ref vsCommandStatus status, ref object commandText)
        {
            VSMenuCommand vSMenuCommand = this[commandName];

            if (vSMenuCommand != null)
            {
                vSMenuCommand.OnQueryStatus(neededText, ref status, ref commandText);
            }
        }
Esempio n. 2
0
        /// <summary>Implements the QueryStatus method of the IDTCommandTarget interface. This is called when the command's availability is updated</summary>
        /// <param term='commandName'>The name of the command to determine state for.</param>
        /// <param term='neededText'>Text that is needed for the command.</param>
        /// <param term='status'>The state of the command in the user interface.</param>
        /// <param term='commandText'>Text requested by the neededText parameter.</param>
        /// <seealso class='Exec' />
        public void QueryStatus(string commandName, vsCommandStatusTextWanted neededText, ref vsCommandStatus status, ref object commandText)
        {
            // TODO: route to the child menu item

            VSMenuCommand command = this[commandName];

            if (command != null)
            {
                command.OnQueryStatus(neededText, ref status, ref commandText);
            }
        }