private void ListBox1_SelectionChanged(object sender, SelectionChangedEventArgs e) { selectedVardnadshavare = (Vardnadshavare)listBox1.SelectedItem; cmbBoxBarn.ItemsSource = null; cmbBoxBarn.ItemsSource = db.GetBarnByVh(selectedVardnadshavare.Id); }
private void ListBox1_SelectionChanged(object sender, SelectionChangedEventArgs e) { selectedVardnadshavare = (Vardnadshavare)listBox1.SelectedItem; cmbBoxBarn.ItemsSource = null; cmbBoxBarn.ItemsSource = db.GetBarnByVh(selectedVardnadshavare.Id); }