private void editStudent(ClsStudent prStudent)
 {
     if (prStudent != null && prStudent.ViewEdit())
     {
         _Student = prStudent;
         lblStudent.Text = "Student:\n" + _Student.ToString();
     }
 }
예제 #2
0
 private void editStudent(ClsStudent prStudent)
 {
     if (prStudent != null && prStudent.ViewEdit())
     {
         _Student        = prStudent;
         lblStudent.Text = "Student:\n" + _Student.ToString();
     }
 }
예제 #3
0
        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;
 }
예제 #5
0
 public bool ShowDialog(ClsStudent prStudent)
 {
     _Student = prStudent;
     updateDisplay();
     return(ShowDialog() == DialogResult.OK);
 }