示例#1
0
 void CloseFind()
 {
     if (dlgFind != null && dlgFind.RichText != CurrentRichTextBox)
     {
         dlgFind.Close();
         dlgFind = null;
     }
     if (dlgReplace != null && dlgReplace.RichText != CurrentRichTextBox)
     {
         dlgReplace.Close();
         dlgReplace = null;
     }
 }
示例#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();
 }
示例#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();
 }
示例#4
0
 void CloseFind()
 {
     if(dlgFind != null && dlgFind.RichText != CurrentRichTextBox) {
         dlgFind.Close();
         dlgFind = null;
     }
     if(dlgReplace != null && dlgReplace.RichText != CurrentRichTextBox) {
         dlgReplace.Close();
         dlgReplace = null;
     }
 }