public PurchaseHistoryViewModel( ICustomerOperationProvider customerOperationProvider) { _customerOperationProvider = customerOperationProvider; if (PurchaseTicketsTask == null) { RefreshPurchaseCollection(); } }
public MainMenuViewModel(IExpandedNavigation navigationService, ICustomerOperationProvider customerOperationProvider) { _navigationService = navigationService; _customerOperationProvider = customerOperationProvider; NavigateToPurchaseHistory = new RelayCommand(ExecuteNavigateToPurchaseHistory); NavigateToBoostAccount = new RelayCommand(ExecuteNavigateToBoostAccount); NavigateToBuyTicket = new RelayCommand(ExecuteNavigateToBuyTicket); NavigateToTimetable = new RelayCommand(ExecuteNavigateToTimetable); Messenger.Default.Register<CustomerStatus>(this, message => DownloadActiveTickets()); UpdateActiveTicketList(); }
public FinalizationTransactionViewModel( IExpandedNavigation navigationService, ICustomerOperationProvider customerOperation, IAccountManager accountManager) { _navigationService = navigationService; _customerOperation = customerOperation; _accountManager = accountManager; AcceptTransaction = new RelayCommand(ExecuteAcceptTransaction); Messenger.Default.Register<PurchaseTicketStatus>(this, message => { PurchaseTicket.TicketId = message.Ticket.Id; Ticket = message.Ticket; Count = message.TicketCount; }); PurchaseTicket = new PurchaseTicket() { DeviceId = "sampledeviceId", }; }
public BoostAccountViewModel( IExpandedNavigation navigationService, ICustomerOperationProvider customerOperation) { _navigationService = navigationService; _customerOperation = customerOperation; AcceptBoostAccount = new RelayCommand(ExecuteAcceptBoostAccount); NaviagteToMainMenu = new RelayCommand(ExecuteNaviagteToMainMenu); Messenger.Default.Register<CustomerStatus>(this, message => Customer = message.Customer); }