public PayViewModel(IPaymentProcessing paymentProcessing) { this.paymentProcessing = paymentProcessing; BackToMainPageCommand = new MvxCommand(() => ShowViewModel <HomeViewModel>()); PayCommand = new MvxCommand(() => AddHeaderViewModel <CreditCardsForPayViewModel>()); }
public PayHistoryViewModel(IPaymentProcessing paymentProcessing) { this.paymentProcessing = paymentProcessing; GetPayDateFrom = new DateTime(2016, 10, 5); GetPayDateTo = DateTime.Now; backHomeCommand = new MvxCommand(() => { ShowViewModel <HomeViewModel>(); }); backToPayHistoryCommand = new MvxCommand(() => { ShowViewModel <PayHistoryViewModel>(); }); openCalendarFromCommand = new MvxCommand(async() => { GetPayDateFrom = await Mvx.Resolve <ICalendarDialog>().ShowDialogAsync(GetPayDateFrom); await LoadHistoryAsync(); }); openCalendarToCommand = new MvxCommand(async() => { GetPayDateTo = await Mvx.Resolve <ICalendarDialog>().ShowDialogAsync(GetPayDateTo); await LoadHistoryAsync(); }); downloadHistoryCommand = new MvxCommand(() => ServerCommandWrapperAsync(() => DownloadPdfAsync())); History = new MvxObservableCollection <PayHistory>(); }
public PaymentsController( IPaymentProcessing paymentProcessing, IPaymentRepository paymentRepository) { _paymentProcessing = paymentProcessing; _paymentRepository = paymentRepository; }
public CreditCardsViewModel(IPaymentProcessing paymentProcessing) { this.paymentProcessing = paymentProcessing; CloseCreditCardsCommand = new MvxCommand(() => ShowViewModel <ProfileViewModel>()); AddCreditCardsCommand = new MvxCommand(() => ShowViewModel <AddCreditCardViewModel>()); CrediCards = new MvxObservableCollection <CreditCardAuthorizeDotNetViewModel>(); }
public AddCreditCardViewModel(IPaymentProcessing paymentProcessing, IStoredSettingsService storedSettingsService) { this.paymentProcessing = paymentProcessing; this.storedSettingsService = storedSettingsService; CloseAddCreditCardCommand = new MvxCommand(async() => { await CloseAsync(); }); SaveCreditCardCommand = new MvxCommand(async() => { await SaveCrediCardAsync(); }); }
public CreditCardAuthorizeDotNetViewModel(PaymentProfile creditCard, IPaymentProcessing paymentProcessing, Action removeCreditCardFromList) { CreditCard = creditCard; this.paymentProcessing = paymentProcessing; this.removeCreditCardFromList = removeCreditCardFromList; RemoveCreditCardCommand = new MvxCommand(async() => { await RemoveCreditCardAsync(); }); }
public SynchronisationService(IServerApiService serverApiService, IStoredSettingsService storedSettingsService, IPaymentProcessing paymentProcessing) { this.serverApiService = serverApiService; this.storedSettingsService = storedSettingsService; this.paymentProcessing = paymentProcessing; }
public CreditCardsForPayViewModel(IPaymentProcessing paymentProcessing) : base(paymentProcessing) { this.paymentProcessing = paymentProcessing; ItemSelectedCommand = new MvxCommand <CreditCardAuthorizeDotNetViewModel>(selectedCard => PayForTrips(selectedCard)); }