Example #1
0
        public RatingPage()
        {
            InitializeComponent();
            context = new Core.teacher69Entities();

            GroupList.ItemsSource       = context.Groups.ToList();
            GroupList.DisplayMemberPath = "NameGroup";
            GroupList.SelectedValuePath = "IdGroup";
        }
Example #2
0
        public DeleteStudentPage()
        {
            InitializeComponent();
            context = new Core.teacher69Entities();

            GroupComboBox.ItemsSource       = context.Groups.ToList();
            GroupComboBox.DisplayMemberPath = "NameGroup";
            GroupComboBox.SelectedValuePath = "IdGroup";
            DeleteDataGrid.ItemsSource      = context.Students.ToList();
        }
Example #3
0
        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";
        }
Example #5
0
 public LoginPage()
 {
     InitializeComponent();
     context = new Core.teacher69Entities();
 }