private void menuFind_Click(object sender, EventArgs e) { if (hFind != null && hFind.CanShowFindDialog) { hFind.ShowFindDialog(); } }
private void menuEditFind_Click(object sender, EventArgs e) { IFindReplaceHandler h = this.DockPanel.ActiveContent as IFindReplaceHandler; if (h != null && h.CanShowFindDialog) { h.ShowFindDialog(); } }