Ejemplo n.º 1
0
        private void mtUserID_Click(object sender, EventArgs e)
        {
            swipe(false);
            UserIDLogIn uIDLogIN = new UserIDLogIn();

            uIDLogIN.ShowDialog();
        }
Ejemplo n.º 2
0
        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();
            }
        }
Ejemplo n.º 3
0
        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);
            }
        }