C# Class SmartCmdArgs.Commands

Command handler
Mostrar archivo Open project: MBulli/SmartCommandlineArgs Class Usage Examples

Public Properties

Property Type Description
CmdArgsToolBarCmdSet System.Guid
KeyBindingsCmdSet System.Guid
VSMenuCmdSet System.Guid

Private Properties

Property Type Description
AddCommandToService void
AddCommandToService void
Commands System
ShowToolWindow void

Public Methods

Method Description
Initialize ( CmdArgsPackage package ) : void

Initializes the singleton instance of the command.

Private Methods

Method Description
AddCommandToService ( Microsoft.VisualStudio.Shell.OleMenuCommandService service, System.Guid cmdSet, int cmdId, EventHandler handler ) : void
AddCommandToService ( Microsoft.VisualStudio.Shell.OleMenuCommandService service, System.Guid cmdSet, int cmdId, RelayCommand relayCommand ) : void
Commands ( CmdArgsPackage package ) : System

Initializes a new instance of the Commands class. Adds our command handlers for menu (commands must exist in the command table file)

ShowToolWindow ( object sender, EventArgs e ) : void

Shows the tool window when the menu item is clicked.

Method Details

Initialize() public static method

Initializes the singleton instance of the command.
public static Initialize ( CmdArgsPackage package ) : void
package CmdArgsPackage Owner package, not null.
return void

Property Details

CmdArgsToolBarCmdSet public_oe static_oe property

public static Guid,System CmdArgsToolBarCmdSet
return System.Guid

KeyBindingsCmdSet public_oe static_oe property

public static Guid,System KeyBindingsCmdSet
return System.Guid

VSMenuCmdSet public_oe static_oe property

Command menu group (command set GUID).
public static Guid,System VSMenuCmdSet
return System.Guid