public SalepointSideInProgressOrdersViewModel(ISalepointOrdersService salepointOrdersService)
        {
            this.salepointOrdersService = salepointOrdersService;
            this.salepointOrdersService.InProgressOrdersUpdated += OrdersPropertyChanged;

            this.Orders = new MvxObservableCollection <SalepointOrderListItemViewModel>();
        }
コード例 #2
0
 public ProfileViewModel(IMvxNavigationService navigationService, ISessionProvider sessionProvider, IDeviceProvider deviceProvider,
                         ICarrierOrdersService carrierOrdersService, ISalepointOrdersService salepointOrdersService, IRoutesService routesService, INotificationsProvider notificationsProvider)
 {
     this.sessionProvider        = sessionProvider;
     this.navigationService      = navigationService;
     this.deviceProvider         = deviceProvider;
     this.carrierOrdersService   = carrierOrdersService;
     this.salepointOrdersService = salepointOrdersService;
     this.routesService          = routesService;
     this.notificationsProvider  = notificationsProvider;
 }
コード例 #3
0
        public SalepointNewOrderViewModel(IMvxNavigationService navigationService, ISalepointOrdersService salepointOrdersService, IUserDialogs dialogsService)
        {
            this.salepointOrdersService = salepointOrdersService;
            this.navigationService      = navigationService;
            this.dialogsService         = dialogsService;

            this.Model = new OrderEditModel();
            this.Model.DestinationCity    = ConstantValues.default_city;
            this.Model.DestinationAddress = string.Empty;

            LoadStreetsList();
        }
コード例 #4
0
        public SalepointMapViewModel(IMvxNavigationService navigationService, ISalepointOrdersService salepointOrdersService, INotificationsProvider notificationsProvider, IUserDialogs dialogsService)
        {
            this.navigationService      = navigationService;
            this.SideView               = Mvx.IocConstruct <SalepointSideViewViewModel>();
            this.salepointOrdersService = salepointOrdersService;
            this.notificationsProvider  = notificationsProvider;
            this.dialogsService         = dialogsService;

            this.notificationsProvider.SocketStatusUpdated += (sender, value) => RaisePropertyChanged(() => this.SignalrConnectionStatus);

            this.salepointOrdersService.AddedOrdersUpdated      += (sender, value) => _addedOrdersUpdateInteraction.Raise(value);
            this.salepointOrdersService.InProgressOrdersUpdated += (sender, value) => _inProgressOrdersUpdateInteraction.Raise(value);
        }
コード例 #5
0
        public SalepointOrderListItemViewModel(IMvxPhoneCallTask phoneCallService, ISalepointOrdersService salepointOrdersService, IUserDialogs dialogsService)
        {
            this.phoneCallService       = phoneCallService;
            this.salepointOrdersService = salepointOrdersService;
            this.dialogsService         = dialogsService;

            this.cancelationDialogConfig            = new ConfirmConfig();
            this.cancelationDialogConfig.OkText     = "Tak";
            this.cancelationDialogConfig.CancelText = "Nie";
            this.cancelationDialogConfig.Title      = "Anulowanie zamówienia";
            this.cancelationDialogConfig.Message    = "Czy na pewno chcesz anulować zamówienie?";
            this.cancelationDialogConfig.OnAction  += OrderCancellation;
        }
コード例 #6
0
 public SalepointOrderDetailsViewModel(IMvxNavigationService navigationService, ISalepointOrdersService ordersService)
 {
     this.navigationService = navigationService;
     this.ordersService     = ordersService;
 }
コード例 #7
0
        public SalepointSideAddedOrdersViewModel(IMvxNavigationService navigationService, ISalepointOrdersService salepointOrdersService)
        {
            this.navigationService      = navigationService;
            this.salepointOrdersService = salepointOrdersService;
            this.salepointOrdersService.AddedOrdersUpdated += OrdersPropertyChanged;

            this.Orders = new MvxObservableCollection <SalepointOrderListItemViewModel>();
        }
コード例 #8
0
        public SalepointFinishedOrdersViewModel(IMvxNavigationService navigationService, ISalepointOrdersService salepointOrdersService)
        {
            this.navigationService      = navigationService;
            this.salepointOrdersService = salepointOrdersService;

            this.salepointOrdersService.FinishedOrdersUpdated += (sender, e) => this.RaisePropertyChanged(() => this.Orders);
        }