Пример #1
0
        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();
            }
        }
        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();
            }
        }