protected override void Initialize() { AutoBuildCommand.Initialize(this); base.Initialize(); var mcs = GetService(typeof(IMenuCommandService)) as OleMenuCommandService; if (null != mcs) { var menuCommandId = new CommandID(CommandSet, CommandId); var menuItem = new OleMenuCommand(AutoBuildEntityEvent, menuCommandId); mcs.AddCommand(menuItem); } }
public static void Initialize(Package package) { Instance = new AutoBuildCommand(package); }