private void menuEditFind_Click(object sender, System.EventArgs ea)
{
MDIChild mc = this.ActiveMdiChild as MDIChild;
// These menus require an MDIChild in order to work
RdlEditPreview e = mc == null ? null : mc.RdlEditor;
if (e == null)
return;
if (e.DesignTab == DesignTabs.Preview)
{
if (!e.PreviewCtl.ShowFindPanel)
e.PreviewCtl.ShowFindPanel = true;
e.PreviewCtl.FindNext();
}
else
{
FindTab tab = e.FindTab;
if(tab == null)
tab = new FindTab(e);
tab.tcFRG.SelectedTab = tab.tabFind;
tab.Show();
}
}