protected override void OnCreate() { Component = new HelpVisualComponent { Container = this }; ToolBarCommandTarget = new CommandTargetToOleShim(null, Component.Controller); base.OnCreate(); }
protected override void OnCreate() { Component = new HelpVisualComponent { Container = this }; var controller = new AsyncCommandController() .AddCommand(RGuidList.RCmdSetGuid, RPackageCommandId.icmdHelpHome, new HelpHomeCommand(_coreShell.ExportProvider)) .AddCommand(RGuidList.RCmdSetGuid, RPackageCommandId.icmdHelpNext, new HelpNextCommand(Component)) .AddCommand(RGuidList.RCmdSetGuid, RPackageCommandId.icmdHelpPrevious, new HelpPreviousCommand(Component)) .AddCommand(RGuidList.RCmdSetGuid, RPackageCommandId.icmdHelpRefresh, new HelpRefreshCommand(Component)); ToolBarCommandTarget = new CommandTargetToOleShim(null, controller); base.OnCreate(); }