public MainViewModel(INavigationService navigationService /*, ISyncManager syncManager*/, IDeviceCheckInMngr deviceCheckInMngr, IInitializeMetaData initializeMetaData, IDashboardService dashboardService, IGetIconByPlatform getIconByPlatform, IUuidManager uuidManager) : base(navigationService) { //_navigationService = navigationService ?? throw new ArgumentNullException("navigationService"); _deviceCheckInMngr = deviceCheckInMngr; _initializeMetaData = initializeMetaData; _dashboardService = dashboardService; _getIconByPlatform = getIconByPlatform; _uuidManager = uuidManager; MoveCommand = new DelegateCommand(MoveCommandRecieverAsync); MoreCommand = new DelegateCommand(MoreCommandRecieverAsync); MaintainCommand = new DelegateCommand(MaintainCommandRecieverAsync); PalletizeCommand = new DelegateCommand(PalletizeCommandRecieverAsync); PalletsCommand = new DelegateCommand(PalletsCommandRecieverAsync); FillCommand = new DelegateCommand(FillCommandRecieverAsync); ManifestCommand = new DelegateCommand(ManifestCommandRecieverAsync); StockCommand = new DelegateCommand(StockCommandRecieverAsync); EmptyCommand = new DelegateCommand(EmptyCommandRecieverAsync); PartnerCommand = new DelegateCommand(PartnerCommandRecieverAsync); KegsCommand = new DelegateCommand(KegsCommandRecieverAsync); InUsePartnerCommand = new DelegateCommand(InUsePartnerCommandRecieverAsync); DeviceCheckIn(); LoadMetadData(); HandleUnsubscribeMessages(); HandleReceivedMessages(); RefreshDashboardRecieverAsync(); StartPrinterSearch(); Connectivity.ConnectivityChanged -= Connectivity_ConnectivityChanged; Connectivity.ConnectivityChanged += Connectivity_ConnectivityChanged; }
public LoginViewModel(INavigationService navigationService, IPageDialogService dialogService, IGetIconByPlatform getIconByPlatform) : base(navigationService) { _dialogService = dialogService; _getIconByPlatform = getIconByPlatform; LoginCommand = new DelegateCommand(async() => await RunSafe(LoginCommandRecieverAsync())); KegIDCommand = new DelegateCommand(KegIDCommandReciever); #if DEBUG Username = "******"; /*"*****@*****.**"; */ Password = "******"; #endif BgImage = _getIconByPlatform.GetIcon("kegbg.png"); APIBase = ConstantManager.BaseUrl.Contains("Prod") ? string.Empty : ConstantManager.BaseUrl; }
public LoginViewModel(IAccountService accountService, INavigationService navigationService, IMaintainService maintainService, IPageDialogService dialogService, IGetIconByPlatform getIconByPlatform) : base(navigationService) { //_navigationService = navigationService ?? throw new ArgumentNullException("navigationService"); _dialogService = dialogService; _accountService = accountService; _maintainService = maintainService; _getIconByPlatform = getIconByPlatform; LoginCommand = new DelegateCommand(LoginCommandRecieverAsync); KegIDCommand = new DelegateCommand(KegIDCommandReciever); //Username = "******";//"*****@*****.**"; //Password = "******"; BgImage = _getIconByPlatform.GetIcon("kegbg.png"); }
public ScanKegsViewModel(IMoveService moveService, INavigationService navigationService, IPageDialogService dialogService, IManifestManager manifestManager, IGetIconByPlatform getIconByPlatform) : base(navigationService) { //_navigationService = navigationService ?? throw new ArgumentNullException("navigationService"); _dialogService = dialogService; _moveService = moveService; _manifestManager = manifestManager; _getIconByPlatform = getIconByPlatform; DoneCommand = new DelegateCommand(DoneCommandRecieverAsync); BarcodeScanCommand = new DelegateCommand(BarcodeScanCommandReciever); BarcodeManualCommand = new DelegateCommand(BarcodeManualCommandRecieverAsync); AddTagsCommand = new DelegateCommand(AddTagsCommandRecieverAsync); LabelItemTappedCommand = new DelegateCommand <BarcodeModel>((model) => LabelItemTappedCommandRecieverAsync(model)); IconItemTappedCommand = new DelegateCommand <BarcodeModel>((model) => IconItemTappedCommandRecieverAsync(model)); DeleteItemCommand = new DelegateCommand <BarcodeModel>((model) => DeleteItemCommandReciever(model)); LoadBrand(); HandleUnsubscribeMessages(); HandleReceivedMessages(); }
public MaintainScanViewModel(IMoveService moveService, IMaintainService maintainService, INavigationService navigationService, IGetIconByPlatform getIconByPlatform, IUuidManager uuidManager, IManifestManager manifestManager, IGeolocationService geolocationService) : base(navigationService) { //_navigationService = navigationService ?? throw new ArgumentNullException("navigationService"); _moveService = moveService; _maintainService = maintainService; _getIconByPlatform = getIconByPlatform; _uuidManager = uuidManager; _manifestManager = manifestManager; _geolocationService = geolocationService; SubmitCommand = new DelegateCommand(SubmitCommandRecieverAsync); BackCommand = new DelegateCommand(BackCommandRecieverAsync); BarcodeScanCommand = new DelegateCommand(BarcodeScanCommandRecieverAsync); BarcodeManualCommand = new DelegateCommand(BarcodeManualCommandRecieverAsync); LabelItemTappedCommand = new DelegateCommand <BarcodeModel>((model) => LabelItemTappedCommandRecieverAsync(model)); IconItemTappedCommand = new DelegateCommand <BarcodeModel>((model) => IconItemTappedCommandRecieverAsync(model)); DeleteItemCommand = new DelegateCommand <BarcodeModel>((model) => DeleteItemCommandReciever(model)); LoadMaintenanceType(); HandleReceivedMessages(); }
public BulkUpdateScanViewModel(IMoveService moveService, IDashboardService dashboardService, INavigationService navigationService, IGetIconByPlatform getIconByPlatform, IUuidManager uuidManager, IPageDialogService dialogService) : base(navigationService) { //_navigationService = navigationService ?? throw new ArgumentNullException("navigationService"); _moveService = moveService; _dashboardService = dashboardService; _getIconByPlatform = getIconByPlatform; _uuidManager = uuidManager; _dialogService = dialogService; AddTagsCommand = new DelegateCommand(AddTagsCommandRecieverAsync); BarcodeManualCommand = new DelegateCommand(BarcodeManualCommandRecieverAsync); BarcodeScanCommand = new DelegateCommand(BarcodeScanCommandRecieverAsync); SaveCommand = new DelegateCommand(SaveCommandRecieverAsync); CancelCommand = new DelegateCommand(CancelCommandRecieverAsync); LabelItemTappedCommand = new DelegateCommand <BarcodeModel>((model) => LabelItemTappedCommandRecieverAsync(model)); IconItemTappedCommand = new DelegateCommand <BarcodeModel>((model) => IconItemTappedCommandRecieverAsync(model)); LoadAssetSizeAsync(); LoadAssetTypeAsync(); HandleUnsubscribeMessages(); HandleReceivedMessages(); }
public FillScanViewModel(IMoveService moveService, INavigationService navigationService, IZebraPrinterManager zebraPrinterManager, IGetIconByPlatform getIconByPlatform, ICalcCheckDigitMngr calcCheckDigitMngr, IPageDialogService dialogService) : base(navigationService) { //_navigationService = navigationService ?? throw new ArgumentNullException("navigationService"); _moveService = moveService; _getIconByPlatform = getIconByPlatform; _zebraPrinterManager = zebraPrinterManager; _calcCheckDigitMngr = calcCheckDigitMngr; _dialogService = dialogService; CancelCommand = new DelegateCommand(CancelCommandRecieverAsync); BarcodeScanCommand = new DelegateCommand(BarcodeScanCommandRecieverAsync); AddTagsCommand = new DelegateCommand(AddTagsCommandRecieverAsync); PrintCommand = new DelegateCommand(PrintCommandRecieverAsync); IsPalletVisibleCommand = new DelegateCommand(IsPalletVisibleCommandReciever); SubmitCommand = new DelegateCommand(SubmitCommandRecieverAsync); BarcodeManualCommand = new DelegateCommand(BarcodeManualCommandRecieverAsync); LabelItemTappedCommand = new DelegateCommand<BarcodeModel>((model) => LabelItemTappedCommandRecieverAsync(model)); IconItemTappedCommand = new DelegateCommand<BarcodeModel>((model) => IconItemTappedCommandRecieverAsync(model)); DeleteItemCommand = new DelegateCommand<BarcodeModel>((model) => DeleteItemCommandReciever(model)); HandleUnSubscirbeMessages(); HandleReceivedMessages(); }