public RegisterClientsPageViewModel(
            INavigationService navigationService,
            IClientsAppService clientsAppService,
            IUserAppService userAppService,
            ISeasonAppService seasonAppService,
            ITrophyAppService trophyAppService,
            IGamificationPointsAppService gamificationPointsAppService,
            IChallengesAppService challengesAppService,
            IUserDialogs userDialogs)
        {
            _navigationService            = navigationService;
            _clientsAppService            = clientsAppService;
            _userAppService               = userAppService;
            _trophyAppService             = trophyAppService;
            _gamificationPointsAppService = gamificationPointsAppService;
            _challengesAppService         = challengesAppService;
            _seasonAppService             = seasonAppService;
            _userDialogs = userDialogs;

            ClientSelectedForEdition = new Client();
            OpenPopupDateCommand     = new DelegateCommand(OpenDatePopup).ObservesCanExecute(() => CanExecute);
            RegisterNewClientCommand = new DelegateCommand(RegisterNewClient).ObservesCanExecute(() => CanExecute);
            AnniversaryDate          = DatePlaceholder;
            ColorDateAnniversary     = Color.FromHex("#d5d5d5");
        }
Beispiel #2
0
        public MenuPrincipalPageViewModel(
            INavigationService navigationService,
            IUserDialogs userDialogs,
            IUserAppService userAppService,
            ITrophyAppService trophyAppService,
            IChallengesAppService challengesAppService)
        {
            _navigationService = navigationService;
            _userDialogs = userDialogs;
            _userAppService = userAppService;
            _trophyAppService = trophyAppService;
            _challengesAppService = challengesAppService;

            GoToInviteFlowerCommand = new DelegateCommand(GoToInviteFlower).ObservesCanExecute(() => CanExecute);
            GoToRankingCommand = new DelegateCommand(GoToRanking).ObservesCanExecute(() => CanExecute);
            GoToProfileCommand = new DelegateCommand(GoToProfile).ObservesCanExecute(() => CanExecute);
            GoToMySalesCommand = new DelegateCommand(GoToMySales).ObservesCanExecute(() => CanExecute);
            GoToMyClientsCommand = new DelegateCommand(GoToMyClients).ObservesCanExecute(() => CanExecute);
            GoToEditPersonalDataCommand = new DelegateCommand(GoToEditPersonalData).ObservesCanExecute(() => CanExecute);
            GoToSalesHistoryCommand = new DelegateCommand(GoToSalesHistory).ObservesCanExecute(() => CanExecute);
            LogoutCommand = new DelegateCommand(Logout).ObservesCanExecute(() => CanExecute);
            GoToMyTrophiesCommand = new DelegateCommand(GoToMyTrophies).ObservesCanExecute(() => CanExecute);

            Title = "Ranking Geral";
        }
 public CurrentChallengesPageViewModel(ITrophyAppService trophyAppService,
                                       IUserAppService userAppService,
                                       ISalesAppService salesAppService,
                                       IClientsAppService clientsAppService)
 {
     _userAppService    = userAppService;
     _trophyAppService  = trophyAppService;
     _salesAppService   = salesAppService;
     _clientsAppService = clientsAppService;
     Challenges         = new ObservableCollection <Challenge>();
 }
 public LandingPageViewModel(
     ISeasonAppService seasonAppService,
     INavigationService navigationService,
     IGamificationPointsAppService gamificationPointsAppService,
     IUserAppService userAppService,
     IClientsAppService clientsAppService,
     IChallengesAppService challengesAppService,
     ITrophyAppService trophyAppService)
 {
     _seasonAppService             = seasonAppService;
     _navigationService            = navigationService;
     _gamificationPointsAppService = gamificationPointsAppService;
     _userAppService       = userAppService;
     _clientsAppService    = clientsAppService;
     _challengesAppService = challengesAppService;
     _trophyAppService     = trophyAppService;
 }
Beispiel #5
0
 public RegisterSalePageViewModel(
     INavigationService navigationService,
     IUserDialogs userDialogs,
     ISalesAppService salesAppService,
     IUserAppService userAppService,
     IGamificationPointsAppService gamificationPointsAppService,
     ITrophyAppService trophyAppService,
     IChallengesAppService challengesAppService,
     ISeasonAppService seasonAppService)
 {
     _navigationService            = navigationService;
     _userDialogs                  = userDialogs;
     _salesAppService              = salesAppService;
     _userAppService               = userAppService;
     _trophyAppService             = trophyAppService;
     _gamificationPointsAppService = gamificationPointsAppService;
     _challengesAppService         = challengesAppService;
     _seasonAppService             = seasonAppService;
     GoBackCommand                 = new DelegateCommand(GoBack).ObservesCanExecute(() => CanExecute);
     SaveSaleCommand               = new DelegateCommand(SaveSale).ObservesCanExecute(() => CanExecute);
     SaleRegistered                = new Sale();
 }