private void button2_Click(object sender, EventArgs e) { using (frmStudentAddUpdate frm = new frmStudentAddUpdate(0)) { frm.ShowDialog(); } }
private void button1_Click(object sender, EventArgs e) { using (frmStudentAddUpdate frm = new frmStudentAddUpdate(0)) { ///* frm.S*/tudentID = 15090; frm.ShowDialog(); } }
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(); }