public CarrierSideRouteEditViewModel(IRoutesService routesService, ICarrierOrdersService ordersService, IMvxNavigationService navigationService, IUserDialogs dialogsService)
        {
            this.routesService     = routesService;
            this.navigationService = navigationService;
            this.ordersService     = ordersService;
            this.dialogsService    = dialogsService;

            this.ordersService.AcceptedOrdersUpdated += UpdatePoints;
        }
Exemplo n.º 2
0
        public CarrierSideActiveRouteViewModel(IRoutesService routesService, ICarrierOrdersService ordersService, IMvxNavigationService navigationService, IUserDialogs dialogsService)
        {
            this.routesService     = routesService;
            this.navigationService = navigationService;
            this.ordersService     = ordersService;
            this.dialogsService    = dialogsService;

            this.routesService.ActiveRouteUpdated += UpdateActiveRoute;
        }
Exemplo n.º 3
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;
 }
Exemplo n.º 4
0
        public RoutePointActiveListViewModel(IRoutesService routesService, ICarrierOrdersService ordersService, IMvxNavigationService navigationService, IUserDialogs dialogsService, IMvxPhoneCallTask phoneCallService)
        {
            this.routesService     = routesService;
            this.navigationService = navigationService;
            this.ordersService     = ordersService;
            this.phoneCallService  = phoneCallService;
            this.dialogsService    = dialogsService;

            this.passPointDialogConfig            = new ConfirmConfig();
            this.passPointDialogConfig.OkText     = "Tak";
            this.passPointDialogConfig.CancelText = "Nie";
            this.passPointDialogConfig.Title      = "Zakończ punkt";
            this.passPointDialogConfig.Message    = "Czy na pewno chcesz zakończyć ten punkt?";
            this.passPointDialogConfig.OnAction  += x => PassPoint(x);
        }
Exemplo n.º 5
0
 public RoutePointOrderPickupModel(IMvxNavigationService navigationService, IRoutesService routesService, ICarrierOrdersService ordersService, IUserDialogs dialogsService)
 {
     this.navigationService = navigationService;
     this.routesService     = routesService;
     this.ordersService     = ordersService;
     this.dialogsService    = dialogsService;
 }
 public FloatingPendingOrderViewModel(ICarrierOrdersService ordersService, IUserDialogs dialogsService)
 {
     this.dialogsService = dialogsService;
     this.ordersService  = ordersService;
 }
Exemplo n.º 7
0
        public CarrierFloatingOrdersViewModel(IMvxNavigationService navigationService, ICarrierOrdersService ordersService, IUserDialogs dialogsService)
        {
            this.navigationService = navigationService;
            this.ordersService     = ordersService;
            this.dialogsService    = dialogsService;

            this.CreateOrderViewModelsList();
            this.ordersService.PendingOrdersUpdated += UpdateOrders;
        }
        public CarrierMapViewModel(IDeviceProvider deviceProvider, IMvxNavigationService navigationService, ICarrierOrdersService ordersService, IRoutesService routesService, INotificationsProvider notificationsProvider)
        {
            this.deviceProvider        = deviceProvider;
            this.navigationService     = navigationService;
            this.ordersService         = ordersService;
            this.routesService         = routesService;
            this.notificationsProvider = notificationsProvider;

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


            this.ordersService.PendingOrdersUpdated += this.PendingOrdersEventHandler;
            this.routesService.ActiveRouteUpdated   += this.ActiveRouteEventHandler;

            this.sideView = Mvx.IocConstruct <CarrierSideViewViewModel>();
            this.floatingOrdersViewModel = Mvx.IocConstruct <CarrierFloatingOrdersViewModel>();
        }
Exemplo n.º 9
0
 public CarrierFloatingOrderDetailsViewModel(IMvxNavigationService navigationService, ICarrierOrdersService ordersService, IUserDialogs dialogsService)
 {
     this.ordersService     = ordersService;
     this.navigationService = navigationService;
     this.dialogsService    = dialogsService;
 }