コード例 #1
0
ファイル: DashBoardPage.cs プロジェクト: garygsw/Camphor
 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();
 }
コード例 #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();
        }