Exemple #1
0
 private void button2_Click(object sender, EventArgs e)
 {
     EditPersonalParticularsPage editparticulars = new EditPersonalParticularsPage(matric, studentEventManager.GetName(matric), studentEventManager.GetSchool(matric), studentEventManager.GetPassword(matric));
     editparticulars.ShowDialog();
     if (editparticulars.checkSave) {
         studentEventManager.ChangeStudentParticulars(matric, editparticulars.name, editparticulars.password);
         this.nameLabel.Text = editparticulars.name;
         toolStripStatusLabel1.Text = "Your particulars have been updated.";
     }
     dashBoardButtonDisable();
 }
Exemple #2
0
        private void button2_Click(object sender, EventArgs e)
        {
            EditPersonalParticularsPage editparticulars = new EditPersonalParticularsPage(matric, studentEventManager.GetName(matric), studentEventManager.GetSchool(matric), studentEventManager.GetPassword(matric));

            editparticulars.ShowDialog();
            if (editparticulars.checkSave)
            {
                studentEventManager.ChangeStudentParticulars(matric, editparticulars.name, editparticulars.password);
                this.nameLabel.Text        = editparticulars.name;
                toolStripStatusLabel1.Text = "Your particulars have been updated.";
            }
            dashBoardButtonDisable();
        }