Exemple #1
0
 private void Setting_Load(object sender, EventArgs e)
 {
     examiner          = ExamAdministratorManager.GetByID(UserID);
     txbFirstName.Text = examiner.FirstName.ToString();
     txbLastName.Text  = examiner.LastName.ToString();
     txbEmail.Text     = examiner.ExaminerEmail.ToString();
 }
 private void Reset()
 {
     DisableButton();
     leftBorderBtn.Visible          = false;
     iconCurrentChildForm.IconChar  = IconChar.Home;
     iconCurrentChildForm.IconColor = Color.FromArgb(128, 128, 255);
     lblTitleChildForm.Text         = "Home";
     currentChildForm.Close();
     examAdmin      = ExamAdministratorManager.GetByID(UserID);
     lblWelcom.Text = "Welcome, " + "\n" + "\n" + examAdmin.FirstName.ToString() +
                      " " + examAdmin.LastName.ToString();
 }
Exemple #3
0
        private void btnLogin_Click(object sender, EventArgs e)
        {
            var email = txbEmail.Text;
            var admin = ExamAdministratorManager.GetByEmail(email);

            if (admin != null)
            {
                MessageBox.Show("Successfully loged in");
                Home home = new Home();
                home.UserID = admin.ExaminerID;
                home.Show();
                this.Hide();
            }
            else
            {
                MessageBox.Show("Please enter Correct Email Address!");
                txbEmail.Clear();
            }
        }
Exemple #4
0
        private void btnSave_Click(object sender, EventArgs e)
        {
            try
            {
                examiner.FirstName     = txbFirstName.Text;
                examiner.LastName      = txbLastName.Text;
                examiner.ExaminerEmail = txbEmail.Text;

                ExamAdministratorManager.Update(examiner);



                MessageBox.Show("Update Successfully!");
            }

            catch (Exception ex)
            {
                MessageBox.Show("Error when updating: " + ex.Message,
                                ex.GetType().ToString());
            }
        }
 private void Home_Load(object sender, EventArgs e)
 {
     examAdmin      = ExamAdministratorManager.GetByID(UserID);
     lblWelcom.Text = "Welcome, " + "\n" + "\n" + examAdmin.FirstName.ToString() +
                      " " + examAdmin.LastName.ToString();
 }