Exemplo n.º 1
0
        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>();
 }
Exemplo n.º 3
0
 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
     {
     }
 }
Exemplo n.º 4
0
 public LoadPreFab(ILoadAllData dataConnection)
 {
     this.dataConnection = dataConnection;
     dataConnection.DeleteAllData();
 }
Exemplo n.º 5
0
 public KleuterFotoTrekkenPageViewModel(INavigationService navigationService, IPageDialogService dialogService, ILoadAllData dataConnection) : base(navigationService)
 {
     this.dataConnection = dataConnection;
     this.dialogService  = dialogService;
     TakePhotoCommand    = new DelegateCommand(ExecuteTakePhotoCommand);
 }
Exemplo n.º 6
0
 public FotosHoekenPageViewModel(INavigationService navigationService, IPageDialogService dialogService, ILoadAllData dataConnection) : base(navigationService)
 {
     this.dataConnection = dataConnection;
     this.dialogService  = dialogService;
 }