Exemple #1
0
 //For Student
 public void DroppingSubject()
 {
     if (_totalLoad == 0)
     {
         MessageBox.Show("You have no subjects to drop");
     }
     else
     {
         _totalLoad -= _selectedSubject.Units;
         _currentStudent.TakenSubjects.Remove(_selectedSubject);
         TakenSubjectCollection.Remove(_selectedSubject);
     }
     SelectedSubject = null;
 }
Exemple #2
0
 private void TakingSubject()
 {
     _totalLoad += _selectedSubject.Units;
     if (CurrentStudent.RequiredUnits >= _totalLoad)
     {
         _selectedStudent.TakenSubjects.Add(_selectedSubject);
         TakenSubjectCollection.Add(_selectedSubject);
         SelectedSubject = null;
     }
     else
     {
         MessageBox.Show("The Student is in Max Load");
     }
 }