private void EditStudent(ClsStudent prStudent)
 {
     if (prStudent != null && prStudent.ViewEdit())
     {
         _Student = prStudent;
     }
 }
        private void BtnModStudent_Click_1(object sender, EventArgs e)
        {
            ClsStudent lcStudent = (ClsStudent)lstStudents.SelectedValue;

            if (lcStudent != null && lcStudent.ViewEdit())
            {
                UpdateDisplay();
            }
        }
        private void BtnCreateStudent_Click_1(object sender, EventArgs e)
        {
            ClsStudent lcStudent = ClsStudent.NewStudent(CboStudentType.SelectedIndex);

            if (lcStudent != null && lcStudent.ViewEdit())
            {
                ClsInstitute.StudentList.Add(lcStudent.ID, lcStudent);
                UpdateDisplay();
            }
            //EditStudent(lcStudent);
        }
 public bool ShowDialog(ClsStudent prStudent)
 {
     _Student = prStudent;
     UpdateDisplay();
     return(ShowDialog() == DialogResult.OK);
 }