public SupervisorClassBlade(SupervisorClassesPage supervisorClassesPage, ContentWindow window) { _window = window; _page = supervisorClassesPage; InitializeComponent(); SubjectComboViewModel vmComboSubject = new SubjectComboViewModel(); foreach (var item in vmComboSubject.Subject) { SubjectCombo.Items.Add(item); } TeacherComboViewModel vmComboTeacher = new TeacherComboViewModel(); TeacherCombo.ItemsSource = vmComboTeacher.Teacher; ClassTypeComboViewModel vmComboClassType = new ClassTypeComboViewModel(); ClassTypeCombo.ItemsSource = vmComboClassType.ClassType; GroupComboViewModel vmCombo = new GroupComboViewModel(); GroupCombo.ItemsSource = vmCombo.Group; }
public SupervisorNewClassBlade(SupervisorClassesPage supervisorClassesPage) { _page = supervisorClassesPage; InitializeComponent(); SubjectComboViewModel vmComboSubject = new SubjectComboViewModel(); SubjectCombo.ItemsSource = vmComboSubject.Subject; TeacherComboViewModel vmComboTeacher = new TeacherComboViewModel(); TeacherCombo.ItemsSource = vmComboTeacher.Teacher; ClassTypeComboViewModel vmComboClassType = new ClassTypeComboViewModel(); ClassTypeCombo.ItemsSource = vmComboClassType.ClassType; }