示例#1
0
        private void EditStudent()
        {
            ClsStudent lcStudent = (ClsStudent)lstStudents.SelectedItem;

            if (lcStudent != null && lcStudent.ViewEdit())
            {
                UpdateDisplay();
            }
        }
示例#2
0
        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();
            }
        }