public AddPalletsViewModel(IPalletizeService palletizeService, IMoveService moveService, INavigationService navigationService, IPageDialogService dialogService, IManifestManager manifestManager, IUuidManager uuidManager, IGeolocationService geolocationService) : base(navigationService) { //_navigationService = navigationService ?? throw new ArgumentNullException("navigationService"); _dialogService = dialogService; _palletizeService = palletizeService; _moveService = moveService; _manifestManager = manifestManager; _uuidManager = uuidManager; _geolocationService = geolocationService; SubmitCommand = new DelegateCommand(SubmitCommandRecieverAsync); FillScanCommand = new DelegateCommand(FillScanCommandRecieverAsync); FillKegsCommand = new DelegateCommand(FillKegsCommandRecieverAsync); ItemTappedCommand = new DelegateCommand <PalletModel>(async(model) => await ItemTappedCommandRecieverAsync(model)); DeleteItemCommand = new DelegateCommand <PalletModel>((model) => DeleteItemCommandReciever(model)); }
public PalletizeViewModel(IPalletizeService palletizeService, IMoveService moveService, INavigationService navigationService, IZebraPrinterManager zebraPrinterManager, IUuidManager uuidManager, ICalcCheckDigitMngr calcCheckDigitMngr, IPageDialogService dialogService) : base(navigationService) { //_navigationService = navigationService ?? throw new ArgumentNullException("navigationService"); _moveService = moveService; _dialogService = dialogService; _palletizeService = palletizeService; _zebraPrinterManager = zebraPrinterManager; _uuidManager = uuidManager; _calcCheckDigitMngr = calcCheckDigitMngr; CancelCommand = new DelegateCommand(CancelCommandRecieverAsync); PartnerCommand = new DelegateCommand(PartnerCommandRecieverAsync); AddTagsCommand = new DelegateCommand(AddTagsCommandRecieverAsync); TargetLocationPartnerCommand = new DelegateCommand(TargetLocationPartnerCommandRecieverAsync); AddKegsCommand = new DelegateCommand(AddKegsCommandRecieverAsync); IsPalletVisibleCommand = new DelegateCommand(IsPalletVisibleCommandReciever); BarcodeScanCommand = new DelegateCommand(BarcodeScanCommandReciever); SubmitCommand = new DelegateCommand(SubmitCommandRecieverAsync); StockLocation.FullName = "Barcode Brewing"; TargetLocation.FullName = "None"; HandleUnsubscribeMessages(); HandleReceivedMessages(); }