private void BtnChildHome_Click(object sender, RoutedEventArgs e) { DbOperations.SetChildGoneHome(); fritidschildren = DbOperations.GetChildrenAtFritids(); listViewTotalFritids.ItemsSource = fritidschildren; fritidsgonehome = DbOperations.GetChildrenGoneHome(); listViewFritidsGonehome.ItemsSource = fritidsgonehome; }
private void ListViewFritidsGonehome_Loaded(object sender, RoutedEventArgs e) { fritidsgonehome = DbOperations.GetChildrenGoneHome(); foreach (var c in fritidsgonehome) { c.UpdateLeaveAlone(); } listViewFritidsGonehome.ItemsSource = fritidsgonehome; }