Exemplo n.º 1
0
 private void StopSearch()
 {
     _foundTextTimer.Stop();
     _search.End();
     while (_search.IsBusy)
     {
         DoEvents();
     }
     _foundText.Clear();
     _forHighlight.Clear();
     PdfViewer.RemoveHighlightFromText();
 }
Exemplo n.º 2
0
        private void StopSearch()
        {
            _foundTextTimer.Stop();
            _search.End();
            while (_search.IsBusy)
            {
                Application.DoEvents();
            }
            _foundText.Clear();
            _forHighlight.Clear();
            PdfViewer.RemoveHighlightFromText();

            var tssb = this.Items["btnSearchBar"] as ToolStripSearchBar;

            if (tssb == null)
            {
                return;
            }
        }