Inheritance: IHelpVisualComponent
Esempio n. 1
0
 protected override void OnCreate()
 {
     Component = new HelpVisualComponent {
         Container = this
     };
     ToolBarCommandTarget = new CommandTargetToOleShim(null, Component.Controller);
     base.OnCreate();
 }
Esempio n. 2
0
        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();
        }