示例#1
0
        private void FilterChanged(object sender, EventArgs e)
        {
            string selectedFilterName = filterCombobox.SelectedItem.ToString();

            if (!string.IsNullOrEmpty(selectedFilterName))
            {
                HtmlHelp2Environment.FindFilterQuery(selectedFilterName);
            }
        }
示例#2
0
 private bool SetToc(string filterName)
 {
     try
     {
         tocControl.Hierarchy =
             HtmlHelp2Environment.GetTocHierarchy(HtmlHelp2Environment.FindFilterQuery(filterName));
         return(true);
     }
     catch (System.Runtime.InteropServices.COMException)
     {
         LoggingService.Error("Help 2.0: Cannot connect to the IHxHierarchy interface.");
         return(false);
     }
 }
示例#3
0
 private bool SetIndex(string filterName)
 {
     try
     {
         indexControl.IndexData =
             HtmlHelp2Environment.GetIndex(HtmlHelp2Environment.FindFilterQuery(filterName));
         return(true);
     }
     catch (System.Runtime.InteropServices.COMException)
     {
         LoggingService.Error("Help 2.0: cannot connect to IHxIndex interface (Index)");
         return(false);
     }
 }