Ejemplo n.º 1
0
 public MainPageViewModel(INavigationService navigationService,
                          IPlayerRepository playerRepository,
                          IScoreHistoryRepository scoreHistoryRepository)
 {
     this.NavigationService      = navigationService;
     this.PlayerRepository       = playerRepository;
     this.ScoreHistoryRepository = scoreHistoryRepository;
     this.NavigateCommand        = new DelegateCommand <string>(async x => await this.NavigationService.NavigateAsync(x));
 }
Ejemplo n.º 2
0
        public GamePageViewModel(INavigationService navigationService,
                                 ICameraService cameraService,
                                 IFaceService faceService,
                                 IPlayerRepository playerRepository,
                                 IScoreHistoryRepository scoreHistoryRepository)
        {
            this.NavigationService      = navigationService;
            this.CameraService          = cameraService;
            this.FaceService            = faceService;
            this.PlayerRepository       = playerRepository;
            this.ScoreHisotryRepository = scoreHistoryRepository;

            this.StartGameCommand = new DelegateCommand(async() => await this.StartGameAsync());
        }