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