public MainPageViewModel(INavigationService navigationService, IEventAggregator ea, ILoadAllData dataConnection) : base(navigationService) { Title = "Klas applicatie"; this.dataConnection = dataConnection; ImageHomeClicked = new DelegateCommand(() => { NavigationService.NavigateAsync("LogInPage"); }); ImageSchoolClicked = new DelegateCommand(() => { NavigationService.NavigateAsync("FotosKleutersPage"); }); //Gemaakt door Daan Vandebosch try { Prefab(); } catch (Exception ex) { string x = ex.Message; } Task <List <Kleuter> > kl = dataConnection.LoadKleuters(); }
public FotosKleutersPageViewModel(INavigationService navigationService, IPageDialogService dialogService, ILoadAllData dataConnection) : base(navigationService) { this.dataConnection = dataConnection; ImageKleuterClicked = new DelegateCommand(ExecuteTakePhotoCommand); this.dialogService = dialogService; //Kleuters = new ObservableCollection<Kleuter>(); }
public LogInPageViewModel(INavigationService navigationService, ILoadAllData dataConnection) : base(navigationService) { this.dataConnection = dataConnection; try { LoginKnopGedrukt = new DelegateCommand(() => { foreach (Gezin g in Gezinnen) { if (TekstVak.ToUpper() == g.GezinsCode) { //NavigationService.NavigateAsync("OudersMainPage"); var p = new NavigationParameters(); p.Add("gezin", g); NavigationService.NavigateAsync("OudersMainPage", p); } } }); } catch { } }
public LoadPreFab(ILoadAllData dataConnection) { this.dataConnection = dataConnection; dataConnection.DeleteAllData(); }
public KleuterFotoTrekkenPageViewModel(INavigationService navigationService, IPageDialogService dialogService, ILoadAllData dataConnection) : base(navigationService) { this.dataConnection = dataConnection; this.dialogService = dialogService; TakePhotoCommand = new DelegateCommand(ExecuteTakePhotoCommand); }
public FotosHoekenPageViewModel(INavigationService navigationService, IPageDialogService dialogService, ILoadAllData dataConnection) : base(navigationService) { this.dataConnection = dataConnection; this.dialogService = dialogService; }