コード例 #1
0
        /**
         * performSearch() -
         *
         * This function wraps the search() and highlight() functions
         * into one so that they are performed after each other as long
         * as we have a non-null/empty string in our property.
         */
        public void performSearch()
        {
            // if the string is null or empty just clear the light
            // of coordinates that we have so nothing is highlighted.
            if (String.IsNullOrEmpty(searchString))
            {
                clearHighlightList();
                searchString = null;
                return;
            }
            else
            {
                clearHighlightList();
                highlightSelected = ApplicationHighlight.Highlight;

                if (dleController.Document != null)
                {
                    search(dleController.docView.CurrentPage);
                }
            }
        }
コード例 #2
0
 /**
  * clearHighlightList -
  *
  * clear the list of quads that we have in the highlight list
  * so that they are not redrawn.
  */
 private void clearHighlightList()
 {
     highlightSelected = ApplicationHighlight.NoHighlight;
     highlightQuads.Clear();
     dleController.docView.Refresh();
 }