private void ClearTeacherTabs() { TeacherTables.Clear(); TeacherTab.Items.Clear(); foreach (var teacher in _uctproblem.ProblemObj.TeacherList) { if (teacher == "ASSISTANT") { continue; } TabItem temp = new TabItem { Header = teacher }; TeacherTab.Items.Add(temp); TimeTable tempTt = new TimeTable(); //tempTt.Name = teacher; temp.Content = tempTt; TeacherTables.Add(teacher, tempTt); } }
private void ClearTeacherTabs() { TeacherTables.Clear(); TeacherTab.Items.Clear(); foreach (var teacher in _uctproblem.ProblemObj.TeacherList) { if (teacher == "ASSISTANT") continue; TabItem temp = new TabItem { Header = teacher }; TeacherTab.Items.Add(temp); TimeTable tempTt = new TimeTable(); //tempTt.Name = teacher; temp.Content = tempTt; TeacherTables.Add(teacher, tempTt); } }