private void LeesSessieGegevens() { SessieDataService sessieDs = new SessieDataService(); Sessies = new ObservableCollection <Sessie>(sessieDs.GetSessies()); //Pionnen = new ObservableCollection<Pion>(pionDs.GetPionnen()); BordDataService bordDs = new BordDataService(); Borden = new ObservableCollection <Bord>(bordDs.GetBorden()); RecentsteSessie = Sessies.LastOrDefault(); foreach (Bord bord in Borden) { if (bord.ID == RecentsteSessie.bordID) { hexBrush = new SolidColorBrush((Color)ColorConverter.ConvertFromString(bord.HexCode)); } } }
public void LeesBorden() { //instantiëren dataservice BordDataService bordDS = new BordDataService(); Borden = new ObservableCollection <Bord>(bordDS.GetBorden()); }
public void RefreshBorden() { BordDataService bordenDs = new BordDataService(); Borden = new ObservableCollection <Bord>(bordenDs.GetBorden()); }