Exemple #1
0
        public LoginPageViewModel(
            INavigationService navigationService,
            IUserAppService userAppService,
            IUserDialogs userDialogs,
            IChallengesAppService challengesAppService,
            ISeasonAppService seasonAppService,
            ISalesAppService salesAppService,
            IClientsAppService clientsAppService)
        {
            _navigationService    = navigationService;
            _userAppService       = userAppService;
            _userDialogs          = userDialogs;
            _challengesAppService = challengesAppService;
            _seasonAppService     = seasonAppService;
            _salesAppService      = salesAppService;
            _clientsAppService    = clientsAppService;

            LoginCommand         = new DelegateCommand(ExecuteLogin).ObservesCanExecute(() => CanExecute);
            ResetPasswordCommand = new DelegateCommand(ResetPassword).ObservesCanExecute(() => CanExecute);

            CacheAccess.Initialize();
        }