Example #1
0
 void CloseFind()
 {
     if (dlgFind != null && dlgFind.RichText != CurrentRichTextBox)
     {
         dlgFind.Close();
         dlgFind = null;
     }
     if (dlgReplace != null && dlgReplace.RichText != CurrentRichTextBox)
     {
         dlgReplace.Close();
         dlgReplace = null;
     }
 }
Example #2
0
 private void iReplace_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
 {
     if (CurrentRichTextBox == null)
     {
         return;
     }
     if (dlgReplace != null)
     {
         dlgReplace.Close();
     }
     if (dlgFind != null)
     {
         dlgFind.Close();
     }
     dlgReplace = new frmReplace(CurrentRichTextBox, Bounds);
     AddOwnedForm(dlgReplace);
     dlgReplace.Show();
 }
Example #3
0
 private void iReplace_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
 {
     if(CurrentRichTextBox == null) return;
     if(dlgReplace != null) dlgReplace.Close();
     if(dlgFind != null) dlgFind.Close();
     dlgReplace = new frmReplace(CurrentRichTextBox, Bounds);
     AddOwnedForm(dlgReplace);
     dlgReplace.Show();
 }
Example #4
0
 void CloseFind()
 {
     if(dlgFind != null && dlgFind.RichText != CurrentRichTextBox) {
         dlgFind.Close();
         dlgFind = null;
     }
     if(dlgReplace != null && dlgReplace.RichText != CurrentRichTextBox) {
         dlgReplace.Close();
         dlgReplace = null;
     }
 }