public CampussenViewModel(MainPageViewModel mainvm)
 {
     _mainvm = mainvm;
     //Eerst loadingscherm (dummydata) tonen terwijl de data wordt opgehaald
     Campussen           = new ObservableCollection <Campus>(CampusRepository.GetCampussen());
     Campus              = Campussen[0];
     CampusDetailCommand = new RelayCommand(campus => ShowDetailsCampus(campus));
     IsLoading           = true;
     GetCampussen();
 }
Ejemplo n.º 2
0
 protected override void OnNavigatedTo(NavigationEventArgs e)
 {
     base.OnNavigatedTo(e);
     this.DataContext = new ObservableCollection <Campus>(CampusRepository.GetCampussen());
 }
 public Campussen()
 {
     this.InitializeComponent();
     Richtingen = new ObservableCollection <Richting>(CampusRepository.GetCampussen()[0].Richtingen);
     gebouwen   = new ObservableCollection <Gebouw>();
 }