protected void OnNewSearchNeeded(NewSearchNeededEventArgs e)
 {
     if (NewSearchNeeded != null)
     {
         NewSearchNeeded(this, e);
     }
 }
 /// <summary>
 /// Raises the NewSearchNeeded event.
 /// </summary>
 protected void OnNewSearchNeeded()
 {
     if (NewSearchNeeded != null)
     {
         NewSearchNeeded(this, NewSearchNeededEventArgs.Empty(this));
     }
 }
 void newHandler_NewSearchNeeded(object sender, NewSearchNeededEventArgs e)
 {
     OnNewSearchNeeded(e);
 }
        void highlightHandlers_NewSearchNeeded(object sender, NewSearchNeededEventArgs e)
        {
            //if (!blockResearch)
            //{
                if (e.Runs == null)
                    FindText(e.HighlightHandler.ElementToHighlight);
                else
                    FindTextIn(e.Runs, e.HighlightHandler.AddHighlight, null);

                NumberOfHits = HitCount();
            //}
        }