public RankingPageViewModel( INavigationService navigationService, IUserDialogs userDialogs, IChallengesAppService challengesAppService, ISeasonAppService seasonAppService, IUserAppService userAppService, ISalesAppService salesAppService, IClientsAppService clientsAppService) { _navigationService = navigationService; _userDialogs = userDialogs; _challengesAppService = challengesAppService; _seasonAppService = seasonAppService; _userAppService = userAppService; _salesAppService = salesAppService; _clientsAppService = clientsAppService; GoToRankingPageCommand = new DelegateCommand <RankingBannerDto>(GoToRankingPage).ObservesCanExecute(() => CanExecute); GoToCurrentChallengesPageCommand = new DelegateCommand(GoToCurrentChallengesPage).ObservesCanExecute(() => CanExecute); GoToAvgPiecesForSalePageCommand = new DelegateCommand(GoToAvgPiecesForSalePage).ObservesCanExecute(() => CanExecute); GoToAvgTicketPageCommand = new DelegateCommand(GoToAvgTicketPage).ObservesCanExecute(() => CanExecute); GoToEffectedSalesPageCommand = new DelegateCommand(GoToEffectedSalesPage).ObservesCanExecute(() => CanExecute); GoToGeneralRankingPageCommand = new DelegateCommand(GoToGeneralRankingPage).ObservesCanExecute(() => CanExecute); GoToInviteFlowerPageCommand = new DelegateCommand(GoToInviteFlowerPage).ObservesCanExecute(() => CanExecute); GoToRegisterClientsPageCommand = new DelegateCommand(GoToRegisterClientsPage).ObservesCanExecute(() => CanExecute); InitializeRankings(); }
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"); }
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 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; }
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(); }
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(); }