private void reportingToolStripMenuItem_Click(object sender, EventArgs e) { frmAdmin frm = new frmAdmin(); DialogResult frmResult = frm.ShowDialog(); if (frm.DialogResult == DialogResult.Yes) { frmReporting rep = new frmReporting(); rep.Show(); } }
private void adminPanelToolStripMenuItem_Click(object sender, EventArgs e) { frmAdmin frm = new frmAdmin(); DialogResult frmResult = frm.ShowDialog(); if (frm.DialogResult == DialogResult.Yes) { frmAdminPanel frmPanel = new frmAdminPanel(); frmPanel.Show(); } }