Пример #1
0
 /// <summary>
 /// Zapíše studentovi předmět
 /// </summary>
 /// <param name="student"></param>
 /// <param name="predmet"></param>
 public void AddPredmet(Student student, Predmet predmet)
 {
     Studenti[student.Id].ZapsanePredmety.Add(predmet.Id, predmet);
     Databaze.Predmety[predmet.Id].Studujici.Add(student.Id, student);
 }
Пример #2
0
 /// <summary>
 /// Odebere studentovi zapsaný předmět
 /// </summary>
 /// <param name="student"></param>
 /// <param name="predmet"></param>
 public void RemovePredmet(Student student, Predmet predmet)
 {
     Studenti[student.Id].ZapsanePredmety.Remove(predmet.Id);
     Databaze.Predmety[predmet.Id].Studujici.Remove(student.Id);
 }
Пример #3
0
 /// <summary>
 /// Vymaže záznam studenta
 /// </summary>
 /// <param name="student"></param>
 public void Delete(Student student)
 {
     Studenti.Remove(student.Id);
 }