private void editStudent(ClsStudent prStudent) { if (prStudent != null && prStudent.ViewEdit()) { _Student = prStudent; lblStudent.Text = "Student:\n" + _Student.ToString(); } }
private void btnCreateStudent_Click(object sender, EventArgs e) { //if (cboStudentType.SelectedIndex == 0) //{ // _StudentForm = _MOEStudentForm; // _Student = new ClsMOEStudent(); //} //if (cboStudentType.SelectedIndex == 1) //{ // _StudentForm = _IntStudentForm; // _Student = new ClsInternationalStudent(); //} //else //{ // _StudentForm = _TOPStudentForm; // _Student = new ClsTopStudent(); //} ClsStudent lcStudent = ClsStudent.NewStudent(cboStudentType.SelectedIndex); editStudent(lcStudent); }
public bool ShowDialog(ClsStudent prStudent) { _Student = prStudent; updateDisplay(); return ShowDialog() == DialogResult.OK; }
public bool ShowDialog(ClsStudent prStudent) { _Student = prStudent; updateDisplay(); return(ShowDialog() == DialogResult.OK); }