C# Class ResxHere.CreateResxHere

Command handler
Mostrar archivo Open project: sh4nji/ResxHere Class Usage Examples

Public Properties

Property Type Description
CommandSet System.Guid

Private Properties

Property Type Description
AddResxFileForCulture void
CreateResxHere System
CreateResxHere System
MenuCommand_BeforeQueryStatus void
MenuItemCallback void

Public Methods

Method Description
Initialize ( Microsoft.VisualStudio.Shell.Package package ) : void

Initializes the singleton instance of the command.

Private Methods

Method Description
AddResxFileForCulture ( FileInfo file, CultureInfo culture ) : void
CreateResxHere ( ) : System
CreateResxHere ( Microsoft.VisualStudio.Shell.Package package ) : System

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

MenuCommand_BeforeQueryStatus ( object sender, EventArgs e ) : void
MenuItemCallback ( object sender, EventArgs e ) : void

This function is the callback used to execute the command when the menu item is clicked. See the constructor to see how the menu item is associated with this function using OleMenuCommandService service and MenuCommand class.

Method Details

Initialize() public static method

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

Property Details

CommandSet public_oe static_oe property

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