Exemplo n.º 1
0
        private void FilterChanged(object sender, EventArgs e)
        {
            string selectedFilterName = filterCombobox.SelectedItem.ToString();

            if (!string.IsNullOrEmpty(selectedFilterName))
            {
                HtmlHelp2Environment.FindFilterQuery(selectedFilterName);
            }
        }
Exemplo n.º 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);
     }
 }
Exemplo n.º 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);
     }
 }