Exemple #1
0
 private void find_FindButtonClick(object sender, FindEventArgs e)
 {
     if (FindCriteria != null)
     {
         FindCriteria(this, e);
     }
 }
        void _findDetails_Initiated(object sender, FindEventArgs e)
        {
            if (this.SearchText != e.FindDetails.FindCriteria)
            {
                this.LastSearchIndex = 0;
            }

            this.SearchText = e.FindDetails.FindCriteria;
            this.UpdateFindHighlighting(e.FindDetails.FindCriteria);
        }
Exemple #3
0
 void find_FindCriteria(object sender, FindEventArgs e)
 {
     if (tabControlMain.Items.Count > 0)
     {
         if (e.FindDetails.Options == FindOptions.AllOpenDocuments)
         {
             StopFileSwitchOnSearch = false;
             FileToSearch.FindDetails = e.FindDetails;
             e.FindDetails.InitiateSearch();
             //FileToSearch.Find(e.FindDetails.FindCriteria);
         }
         else if (e.FindDetails.Options == FindOptions.CurrentDocument)
         {
             StopFileSwitchOnSearch = true;
             ((FileWatcherTabItem)tabControlMain.Items[tabControlMain.SelectedIndex]).FindDetails = e.FindDetails;
             e.FindDetails.InitiateSearch();
         }
     }
 }