public SalepointSideInProgressOrdersViewModel(ISalepointOrdersService salepointOrdersService) { this.salepointOrdersService = salepointOrdersService; this.salepointOrdersService.InProgressOrdersUpdated += OrdersPropertyChanged; this.Orders = new MvxObservableCollection <SalepointOrderListItemViewModel>(); }
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; }
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(); }
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); }
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; }
public SalepointOrderDetailsViewModel(IMvxNavigationService navigationService, ISalepointOrdersService ordersService) { this.navigationService = navigationService; this.ordersService = ordersService; }
public SalepointSideAddedOrdersViewModel(IMvxNavigationService navigationService, ISalepointOrdersService salepointOrdersService) { this.navigationService = navigationService; this.salepointOrdersService = salepointOrdersService; this.salepointOrdersService.AddedOrdersUpdated += OrdersPropertyChanged; this.Orders = new MvxObservableCollection <SalepointOrderListItemViewModel>(); }
public SalepointFinishedOrdersViewModel(IMvxNavigationService navigationService, ISalepointOrdersService salepointOrdersService) { this.navigationService = navigationService; this.salepointOrdersService = salepointOrdersService; this.salepointOrdersService.FinishedOrdersUpdated += (sender, e) => this.RaisePropertyChanged(() => this.Orders); }