private void WixBuildEventEditorForm_HelpRequested(object sender, HelpEventArgs hlpevent)
        {
            Microsoft.VisualStudio.VSHelp.Help help = this.serviceProvider == null ? null : this.serviceProvider.GetService(typeof(Microsoft.VisualStudio.VSHelp.Help)) as Microsoft.VisualStudio.VSHelp.Help;

            if (help != null)
            {
                help.DisplayTopicFromF1Keyword("cs.ProjectPropertiesBuildEventsBuilder");
            }

            hlpevent.Handled = true;
        }
Example #2
0
        void IPropertyPage.Help(string pszHelpDir)
        {
            IServiceProvider serviceProvider = _site as IServiceProvider;

            if (serviceProvider != null)
            {
                Help helpService = serviceProvider.GetService(typeof(Help)) as Help;
                if (helpService != null)
                {
                    helpService.DisplayTopicFromF1Keyword(HelpKeyword);
                }
            }
        }
Example #3
0
        public void Help(string pszHelpDir)
        {
            System.IServiceProvider serviceProvider = IPropertyPageSite as System.IServiceProvider;

            if (null != serviceProvider)
            {
                Microsoft.VisualStudio.VSHelp.Help helpService = serviceProvider.GetService(typeof(Microsoft.VisualStudio.VSHelp.Help)) as Microsoft.VisualStudio.VSHelp.Help;
                if (null != helpService)
                {
                    helpService.DisplayTopicFromF1Keyword(HelpKeyword);
                }
            }
        }
Example #4
0
        /// <summary>
        /// Invoke the property page help in response to an end-user request.
        /// </summary>
        /// <param name="pszHelpDir"></param>
        public void Help(string pszHelpDir)
        {
            System.IServiceProvider iPropertyPageSite =
                this.PropertyPageSite as System.IServiceProvider;
            if (iPropertyPageSite != null)
            {
                Microsoft.VisualStudio.VSHelp.Help service = iPropertyPageSite.GetService(
                    typeof(Microsoft.VisualStudio.VSHelp.Help)) as Microsoft.VisualStudio.VSHelp.Help;

                if (service != null)
                {
                    service.DisplayTopicFromF1Keyword(this.HelpKeyword);
                }
            }
        }
Example #5
0
        /// <devdoc>
        ///     Shows the help topic corresponding the specified keyword.
        ///     The topic will be displayed in
        ///     the environment's integrated help system.
        /// </devdoc>
        void IHelpService.ShowHelpFromKeyword(string helpKeyword)
        {
            Debug.Assert(provider != null, "Help service is in an invalid state.");
            Debug.Assert(helpKeyword != null, "IHelpService.ShowHelpFromKeyword called with a null string.");
            if ((provider == null) || (helpKeyword == null))
            {
                return;
            }

            Microsoft.VisualStudio.VSHelp.Help help =
                (Microsoft.VisualStudio.VSHelp.Help)provider.GetService(typeof(Microsoft.VisualStudio.VSHelp.Help));

            bool topicFound = false;

            if (help != null)
            {
                try {
                    // This call will throw if the topic is not found.
                    help.DisplayTopicFromF1Keyword(helpKeyword);
                    // If the previous call doesn't throw, then the topic was found.
                    topicFound = true;
                } catch (COMException) {
                    // IVsHelp can causes a ComException to be thrown if the help
                    // topic isn't found.
                }
                if (!topicFound)
                {
                    try {
                        help.DisplayTopicFromKeyword(helpKeyword);
                    } catch (COMException) {
                        // IVsHelp can causes a ComException to be thrown if the help
                        // topic isn't found.
                    }
                }
            }
        }
 private void DeleteCourseDialog_HelpRequested(object sender, System.Windows.Forms.HelpEventArgs hlpevent)
 {
     Microsoft.VisualStudio.VSHelp.Help help = (Microsoft.VisualStudio.VSHelp.Help)m_applicationObject.GetObject("Help");
     help.DisplayTopicFromF1Keyword("vs.AMDeleteCourse");
 }