private void FilterChanged(object sender, EventArgs e) { string selectedFilterName = filterCombobox.SelectedItem.ToString(); if (!string.IsNullOrEmpty(selectedFilterName)) { HtmlHelp2Environment.FindFilterQuery(selectedFilterName); } }
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); } }
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); } }