Exemplo n.º 1
0
 private void button2_Click(object sender, EventArgs e)
 {
     using (frmStudentAddUpdate frm = new frmStudentAddUpdate(0))
     {
         frm.ShowDialog();
     }
 }
Exemplo n.º 2
0
 private void button1_Click(object sender, EventArgs e)
 {
     using (frmStudentAddUpdate frm = new frmStudentAddUpdate(0))
     {
         ///* frm.S*/tudentID = 15090;
         frm.ShowDialog();
     }
 }
Exemplo n.º 3
0
        private void picbtnAddStudent_Click(object sender, EventArgs e)
        {
            frmStudentAddUpdate frm = new frmStudentAddUpdate(0);

            //frm.CurrentStudentID = 0;
            frm.ShowDialog();
            if (frm.CurrentStudentID != 0)
            {
                this.txtStudentIdNumber.Text = frm.CurrentSelectedStudent.StudentIDNumber;
                this.txtFirstName.Text       = frm.CurrentSelectedStudent.Individual.IndividualFirstName;
                this.txtLastName.Text        = frm.CurrentSelectedStudent.Individual.IndividualLastname;
                this.txtStudentNumber.Text   = frm.CurrentSelectedStudent.StudentID.ToString();
            }
            this.setSearchVariables();
            this.SearchForStudent();
        }