private void mtUserID_Click(object sender, EventArgs e) { swipe(false); UserIDLogIn uIDLogIN = new UserIDLogIn(); uIDLogIN.ShowDialog(); }
private void mtlinkLogOut1_Click(object sender, EventArgs e) { DialogResult dr = MetroFramework.MetroMessageBox.Show(this, "Are You Sure You Want To Log Out", "Sure Enough?", MessageBoxButtons.YesNo, MessageBoxIcon.Asterisk); if (dr == DialogResult.Yes) { swipe(false); UserIDLogIn _login = new UserIDLogIn(); _login.ShowDialog(); } }
private void mtLecturerReg_Click(object sender, EventArgs e) { DialogResult dr = MetroFramework.MetroMessageBox.Show(this, "Authorize the Activity via Manager", "Manager Administration Required", MessageBoxButtons.YesNo, MessageBoxIcon.Warning); if (dr == DialogResult.Yes) { UserIDLogIn managerLogIN = new UserIDLogIn(); managerLogIN.Text = "Manager Authorization"; managerLogIN.ShowDialog(); var tempForm = Form.ActiveForm as MainForm; //tempForm.Text = "ECS - Lecturer Registration"; LecturerRegistration _LecturerRegistration = new LecturerRegistration(tempForm); _LecturerRegistration.swipe(true); } }