public void ToonStudent(Student student) { _student = student; runFamilienaam.Text = GetoondeStudent.Familienaam; runGeboorteplaats.Text = GetoondeStudent.GeboortePlaats; runVoorNaam.Text = GetoondeStudent.Voornaam; }
public static List<StudentModulePunt> StudentModulePuntVoorStudent(Student student, List<StudentModulePunt> smpsInput) { List<StudentModulePunt> smps = (from smp in smpsInput where smp.Email.Equals(student.Email) select smp).ToList<StudentModulePunt>(); smps.Sort(new StudentModulePuntPuntSorter()); smps.Reverse(); return smps; }
public async static Task<List<StudentModulePunt>> VerzamelStudentStudentModulePunten(Student student) { using (var client = new HttpClient()) { client.BaseAddress = new Uri(@"http://localhost:56608/api/"); client.DefaultRequestHeaders.Accept.Clear(); client.DefaultRequestHeaders.Accept.Add( new System.Net.Http.Headers.MediaTypeWithQualityHeaderValue("application/json")); HttpResponseMessage response = await client.GetAsync("StudentModulePunt/StudentStudentModulePunten?email=" + student.Email); if (response.IsSuccessStatusCode) { String s = await response.Content.ReadAsStringAsync(); List<StudentModulePunt> studentsmps = JsonConvert.DeserializeObject<List<StudentModulePunt>>(s); studentsmps.Sort(new StudentModulePuntPuntSorter()); studentsmps.Reverse(); return studentsmps; } else return null; } }
private async void VerzamelStudentModules(Student stud) { GeselecteerdeStudentModules = await StudentModulePuntRepository.VerzamelStudentStudentModulePunten(stud); OnPropertyChanged("GeselecteerdeStudentModules"); }
private void ToonModules(Student student) { List<StudentModulePunt> smps = StudentModulePuntRepository.StudentModulePuntVoorStudent(student,_smps); ctlsmps.ToonStudentModulePunten(smps); }
private void ToonModules(Student student) { List<StudentModulePunt> smps = StudentModulePuntRepository.StudentModulePuntVoorStudent(student,_smps); lstStudentModulePunten.ItemsSource = smps; }