예제 #1
0
        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);
            }
        }
예제 #2
0
        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);
            }
        }