// Constructor public Page_Search() { InitializeComponent(); self = this; //Panel for to show HelpTopic results resultsPanel = new Panel_HelpTopicResults(this, DockStyle.Fill); //Search Operator panel operatorsPanel = new Panel_SearchOperator(this, SearchCbo); //Persistence: Load settings using (UserData userData = new UserData(Globals.DataRegKey)) { SearchCbo.Text = userData.ReadStr("Search.Query", ""); pageSizeEdit.Value = userData.ReadInt("Search.PageSize", 50); } statusLabel.Text = "--"; UpdateStatus(false); //Super Tips new SuperTip(tipResultsPerPage, "Results pre Page", "Often many 1000's of search results will be available.", "So search calls return just one page of results at a time.", "In this demo you can specify the size of a page and use", "next and previous links to step through all available pages."); new SuperTip(tipMatchHighlighting, "Match Highlighting", "When checked search results are wrapped in <span> tags", "to highlight search query terms. This would be useful if", "you were creating your own HTML page of search results."); new SuperTip(tipOrQueryTerms, "OR Query Terms", "Normally when you enter 2 or more search query terms, they", "are AND'd together. Check this box to 'OR' them instead."); }
public Form_H2Main() { InitializeComponent(); DebugForm.Create(); Globals.Initialize(this); //Create API Test _pages in order _pages.Add(Page_Notes.Create()); _navItems.Add("Introduction"); _pages.Add(Page_Catalogs.Create()); _navItems.Add("Catalogs"); _pages.Add(Page_TOC.Create()); _navItems.Add("TOC"); _pages.Add(Page_Keywords.Create()); _navItems.Add("Keywords"); _pages.Add(Page_Search.Create()); _navItems.Add("Search"); _pages.Add(Page_Topics.Create()); _navItems.Add("Topics"); navListBox.DataSource = _navItems; //Rest of initialization InitOtherPageTabs(); }
private readonly Panel_HelpTopicResults resultsPanel; //search results inserted screen bottom internal static Page_Search Create() { self = new Page_Search(); return self; }
private readonly Panel_HelpTopicResults resultsPanel; //search results inserted screen bottom internal static Page_Search Create() { self = new Page_Search(); return(self); }