private void Cb1_SelectionChanged(object sender, SelectionChangedEventArgs e) { using (Repos rep = new Repos()) { TempList1 = rep.Vakjes(TempList[Cb1.SelectedIndex]); foreach (Vak v in TempList1) { Vakken.Add(v.Naam); } } Cb2.ItemsSource = Vakken; }