private void rCPDataToolStripMenuItem1_Click(object sender, EventArgs e) { try { RCPViewData wnd = new RCPViewData(config); wnd.MdiParent = this; wnd.Show(); wnd.Activate(); } catch (Exception ex) { MessageBox.Show(ex.TargetSite + " " + ex.Message, "Error!", MessageBoxButtons.OK, MessageBoxIcon.Error); } }
private void ToolStripMenuItemViewDataRCP_Click(object sender, EventArgs e) { try { RCPViewData wnd = new RCPViewData(config); wnd.MdiParent = this; wnd.Show(); wnd.Activate(); } catch (Exception ex) { } }