private void EditStudent() { ClsStudent lcStudent = (ClsStudent)lstStudents.SelectedItem; if (lcStudent != null && lcStudent.ViewEdit()) { UpdateDisplay(); } }
private void btnCreateStudent_Click(object sender, EventArgs e) { ClsStudent lcStudent = ClsStudent.NewStudent(cboStudentType.SelectedIndex); if (lcStudent != null && lcStudent.ViewEdit()) { ClsInstitute.StudentList.Add(lcStudent.ID, lcStudent); UpdateDisplay(); } }