Exemple #1
0
 private void CloseSearch()
 {
     if (searchOpen)
     {
         searchOpen = false;
         InvokeIfNeeded(delegate() {
             PanelSearch.Visible = false;
             CurBrowser.GetBrowser().StopFinding(true);
         });
     }
 }
Exemple #2
0
        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();
        }