private void LoadToc() { if (this.SetToc(HtmlHelp2Environment.CurrentFilterName)) { filterCombobox.SelectedIndexChanged -= new EventHandler(this.FilterChanged); HtmlHelp2Environment.BuildFilterList(filterCombobox); filterCombobox.SelectedIndexChanged += new EventHandler(this.FilterChanged); } }
private void NamespaceReloaded(object sender, EventArgs e) { this.UpdateControls(); if (HtmlHelp2Environment.SessionIsInitialized) { filterCombobox.SelectedIndexChanged -= new EventHandler(FilterChanged); HtmlHelp2Environment.BuildFilterList(filterCombobox); filterCombobox.SelectedIndexChanged += new EventHandler(FilterChanged); } }
private void LoadIndex( ) { if (this.SetIndex(HtmlHelp2Environment.CurrentFilterName)) { searchTerm.Text = string.Empty; searchTerm.Items.Clear(); filterCombobox.SelectedIndexChanged -= new EventHandler(this.FilterChanged); HtmlHelp2Environment.BuildFilterList(filterCombobox); filterCombobox.SelectedIndexChanged += new EventHandler(this.FilterChanged); } }
private void UpdateControls( ) { titlesOnly.Enabled = HtmlHelp2Environment.SessionIsInitialized; enableStemming.Enabled = HtmlHelp2Environment.SessionIsInitialized; hiliteTopics.Enabled = HtmlHelp2Environment.SessionIsInitialized; filterCombobox.Enabled = HtmlHelp2Environment.SessionIsInitialized; searchTerm.Enabled = HtmlHelp2Environment.SessionIsInitialized; searchTerm.Text = string.Empty; searchTerm.Items.Clear(); filterCombobox.Items.Clear(); if (HtmlHelp2Environment.SessionIsInitialized) { HtmlHelp2Environment.BuildFilterList(filterCombobox); } }