Пример #1
0
        private void btn_adminCreate_Click(object sender, EventArgs e)
        {
            //Opening Workers Form
            frmCreateAdmin frmCreateAdmin = new frmCreateAdmin();

            //Hides this form
            this.Hide();
            //Opens Workers Form
            frmCreateAdmin.ShowDialog();
            //Opens THIS form when Workers closes
            this.Show();
        }
Пример #2
0
        private void btn_createAcc_Click(object sender, EventArgs e)
        {
            //Opening CreateAdmin Form
            frmCreateAdmin frmCreateAdmin = new frmCreateAdmin();

            //Hides this form
            this.Hide();
            //Opens CreateAdmin Form
            frmCreateAdmin.ShowDialog();
            //Opens THIS form when CreateAdmin closes
            this.Show();
        }