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 MainViewModel(INavigationService navigationService, IInitializeMetaData initializeMetaData, IUuidManager uuidManager) : base(navigationService) { _initializeMetaData = initializeMetaData; _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); }
public WhatIsNewViewModel(INavigationService navigationService, IInitializeMetaData initializeMetaData) : base(navigationService) { //_navigationService = navigationService ?? throw new ArgumentNullException("navigationService"); //_initializeMetaData = initializeMetaData; ImageCollection = new List <ImageClass> { new ImageClass { ImageUri = "new0.png" }, new ImageClass { ImageUri = "new1.png" }, new ImageClass { ImageUri = "new2.png" }, new ImageClass { ImageUri = "new3.png" }, }; HandleReceivedMessages(); }