public EditShippingAddressFlyoutViewModel(IShippingAddressUserControlViewModel shippingAddressUserControlViewModel, ICheckoutDataRepository checkoutDataRepository)
 {
     _checkoutDataRepository = checkoutDataRepository;
     _viewModel = shippingAddressUserControlViewModel;
     SaveCommand = new DelegateCommand(SaveShippingAddress);
     GoBackCommand = new DelegateCommand(() => GoBack(), () => true);
 }
        public ShippingAddressFlyoutViewModel(IShippingAddressUserControlViewModel shippingAddressViewModel, IResourceLoader resourceLoader)
        {
            _shippingAddressViewModel = shippingAddressViewModel;
            _resourceLoader = resourceLoader;

            SaveCommand = new DelegateCommand(SavedShippingAddress);
            GoBackCommand = new DelegateCommand(() => GoBack());
        }
Beispiel #3
0
        public ShippingAddressPageViewModel(IShippingAddressUserControlViewModel shippingAddressViewModel, IResourceLoader resourceLoader, IAlertMessageService alertMessageService, IAccountService accountService, INavigationService navigationService)
        {
            _shippingAddressViewModel = shippingAddressViewModel;
            _resourceLoader           = resourceLoader;
            _alertMessageService      = alertMessageService;
            _accountService           = accountService;
            _navigationService        = navigationService;

            SaveCommand = DelegateCommand.FromAsyncHandler(SaveAsync);
        }
        public ShippingAddressPageViewModel(IShippingAddressUserControlViewModel shippingAddressViewModel, IResourceLoader resourceLoader, IAlertMessageService alertMessageService, IAccountService accountService, INavigationService navigationService)
        {
            _shippingAddressViewModel = shippingAddressViewModel;
            _resourceLoader = resourceLoader;
            _alertMessageService = alertMessageService;
            _accountService = accountService;
            _navigationService = navigationService;

            SaveCommand = DelegateCommand.FromAsyncHandler(SaveAsync);
        }
        public CheckoutHubPageViewModel(INavigationService navigationService, IAccountService accountService, IOrderRepository orderRepository, IShoppingCartRepository shoppingCartRepository,
                                        IShippingAddressUserControlViewModel shippingAddressViewModel, IBillingAddressUserControlViewModel billingAddressViewModel, IPaymentMethodUserControlViewModel paymentMethodViewModel,
                                        IResourceLoader resourceLoader, IAlertMessageService alertMessageService)
        {
            _navigationService        = navigationService;
            _accountService           = accountService;
            _orderRepository          = orderRepository;
            _shoppingCartRepository   = shoppingCartRepository;
            _shippingAddressViewModel = shippingAddressViewModel;
            _billingAddressViewModel  = billingAddressViewModel;
            _paymentMethodViewModel   = paymentMethodViewModel;
            _alertMessageService      = alertMessageService;
            _resourceLoader           = resourceLoader;

            GoNextCommand = new DelegateCommand(GoNext);
        }
        public CheckoutHubPageViewModel(INavigationService navigationService, IAccountService accountService, IOrderRepository orderRepository, IShoppingCartRepository shoppingCartRepository,
                                        IShippingAddressUserControlViewModel shippingAddressViewModel, IBillingAddressUserControlViewModel billingAddressViewModel, IPaymentMethodUserControlViewModel paymentMethodViewModel,
                                        IFlyoutService flyoutService, IResourceLoader resourceLoader, IAlertMessageService alertMessageService)
        {
            _navigationService = navigationService;
            _accountService = accountService;
            _orderRepository = orderRepository;
            _shoppingCartRepository = shoppingCartRepository;
            _shippingAddressViewModel = shippingAddressViewModel;
            _billingAddressViewModel = billingAddressViewModel;
            _paymentMethodViewModel = paymentMethodViewModel;
            _flyoutService = flyoutService;
            _alertMessageService = alertMessageService;
            _resourceLoader = resourceLoader;

            GoBackCommand = new DelegateCommand(navigationService.GoBack, navigationService.CanGoBack);
            GoNextCommand = new DelegateCommand(GoNext);
        }