public void ClearDictionaries() { Disciplines.Clear(); Groups.Clear(); Teachers.Clear(); Time.Clear(); }
public void ChangeListDisciplines(List <Discipline> disciplines) { Disciplines.Clear(); foreach (var item in disciplines) { if (item is Exam) { Disciplines.Add(new Exam(item as Exam)); } else { Disciplines.Add(new Credit(item as Credit)); } } }