private void CloseSearch() { if (searchOpen) { searchOpen = false; InvokeIfNeeded(delegate() { PanelSearch.Visible = false; CurBrowser.GetBrowser().StopFinding(true); }); } }
private void FindTextOnPage(bool next = true) { bool first = lastSearch != TxtSearch.Text; lastSearch = TxtSearch.Text; if (lastSearch.CheckIfValid()) { CurBrowser.GetBrowser().Find(0, lastSearch, true, false, !first); } else { CurBrowser.GetBrowser().StopFinding(true); } TxtSearch.Focus(); }