private void btnAddPerformer_Click(object sender, EventArgs e) { this.Close(); frmAddPerformer frm = new frmAddPerformer(); frm.MdiParent = Application.OpenForms["frmIndex"]; frm.Show(); }
private void addPerformerToolStripMenuItem_Click(object sender, EventArgs e) { HelperMethods.CloseAllForms(); frmAddPerformer frm = new frmAddPerformer(); frm.MdiParent = Application.OpenForms["frmIndex"]; frm.WindowState = FormWindowState.Maximized; frm.Show(); }