コード例 #1
0
        public PayViewModel(IPaymentProcessing paymentProcessing)
        {
            this.paymentProcessing = paymentProcessing;

            BackToMainPageCommand = new MvxCommand(() => ShowViewModel <HomeViewModel>());
            PayCommand            = new MvxCommand(() => AddHeaderViewModel <CreditCardsForPayViewModel>());
        }
コード例 #2
0
        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>();
        }
コード例 #3
0
 public PaymentsController(
     IPaymentProcessing paymentProcessing,
     IPaymentRepository paymentRepository)
 {
     _paymentProcessing = paymentProcessing;
     _paymentRepository = paymentRepository;
 }
コード例 #4
0
        public CreditCardsViewModel(IPaymentProcessing paymentProcessing)
        {
            this.paymentProcessing = paymentProcessing;

            CloseCreditCardsCommand = new MvxCommand(() => ShowViewModel <ProfileViewModel>());
            AddCreditCardsCommand   = new MvxCommand(() => ShowViewModel <AddCreditCardViewModel>());
            CrediCards = new MvxObservableCollection <CreditCardAuthorizeDotNetViewModel>();
        }
コード例 #5
0
        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(); });
        }
コード例 #7
0
 public SynchronisationService(IServerApiService serverApiService, IStoredSettingsService storedSettingsService, IPaymentProcessing paymentProcessing)
 {
     this.serverApiService      = serverApiService;
     this.storedSettingsService = storedSettingsService;
     this.paymentProcessing     = paymentProcessing;
 }
コード例 #8
0
 public CreditCardsForPayViewModel(IPaymentProcessing paymentProcessing) : base(paymentProcessing)
 {
     this.paymentProcessing = paymentProcessing;
     ItemSelectedCommand    = new MvxCommand <CreditCardAuthorizeDotNetViewModel>(selectedCard => PayForTrips(selectedCard));
 }