private void menuReplace_Click(object sender, EventArgs e) { if (hFind != null && hFind.CanShowReplaceDialog) { hFind.ShowReplaceDialog(); } }
private void menuEditReplace_Click(object sender, EventArgs e) { IFindReplaceHandler h = this.DockPanel.ActiveContent as IFindReplaceHandler; if (h != null && h.CanShowReplaceDialog) { h.ShowReplaceDialog(); } }