Пример #1
0
 public void ShowSearchDialog( )
 {
     if (_frmSearchAndReplace == null)
     {
         _frmSearchAndReplace                   = new frmSearchAndReplace();
         _frmSearchAndReplace.FormClosed       += new FormClosedEventHandler(OnSarchAndReplaceFormClosed);
         _frmSearchAndReplace.SearchRequested  += new SearchEventHandler(OnSearchRequested);
         _frmSearchAndReplace.ReplaceRequested += new ReplaceEventHandler(OnReplaceRequested);
     }
     _frmSearchAndReplace.ValidateMode(SearchAndRelaceDialogMode.Search);
     _frmSearchAndReplace.Show();
     _frmSearchAndReplace.TopMost = true;
 }
Пример #2
0
 public void ShowSearchDialog( )
 {
     if (_frmSearchAndReplace == null)
     {
         _frmSearchAndReplace                   = new frmSearchAndReplace();
         _frmSearchAndReplace.FormClosed       += new FormClosedEventHandler(OnSarchAndReplaceFormClosed);
         _frmSearchAndReplace.SearchRequested  += new SearchEventHandler(OnSearchRequested);
         _frmSearchAndReplace.ReplaceRequested += new ReplaceEventHandler(OnReplaceRequested);
     }
     edtMatchText.Text = WordAtCursor;
     _frmSearchAndReplace.InitialSerachText = edtMatchText.Text;
     _frmSearchAndReplace.ValidateMode(SearchAndRelaceDialogMode.Search);
     _frmSearchAndReplace.Show();
     _frmSearchAndReplace.TopMost = true;
 }