public RatingPage() { InitializeComponent(); context = new Core.teacher69Entities(); GroupList.ItemsSource = context.Groups.ToList(); GroupList.DisplayMemberPath = "NameGroup"; GroupList.SelectedValuePath = "IdGroup"; }
public DeleteStudentPage() { InitializeComponent(); context = new Core.teacher69Entities(); GroupComboBox.ItemsSource = context.Groups.ToList(); GroupComboBox.DisplayMemberPath = "NameGroup"; GroupComboBox.SelectedValuePath = "IdGroup"; DeleteDataGrid.ItemsSource = context.Students.ToList(); }
public EditRatingPage() { InitializeComponent(); context = new Core.teacher69Entities(); GroupComboBox.ItemsSource = context.Groups.ToList(); GroupComboBox.DisplayMemberPath = "NameGroup"; GroupComboBox.SelectedValuePath = "IdGroup"; SubjectsComboBox.ItemsSource = context.Subjects.ToList(); SubjectsComboBox.DisplayMemberPath = "NameSubject"; SubjectsComboBox.SelectedValuePath = "IdSubject"; }
public AddStudentPage() { InitializeComponent(); context = new Core.teacher69Entities(); Professions_List.ItemsSource = context.Professions.ToList(); Professions_List.DisplayMemberPath = "NameProfession"; Professions_List.SelectedValuePath = "IdProfession"; YearAddList.ItemsSource = context.YearAdd.ToList(); YearAddList.DisplayMemberPath = "Year"; YearAddList.SelectedValuePath = "idYear"; FormTimeList.ItemsSource = context.FormTime.ToList(); FormTimeList.DisplayMemberPath = "Name"; FormTimeList.SelectedValuePath = "Id"; GroupsList.ItemsSource = context.Groups.ToList(); GroupsList.DisplayMemberPath = "NameGroup"; GroupsList.SelectedValuePath = "IdGroup"; }
public LoginPage() { InitializeComponent(); context = new Core.teacher69Entities(); }