public ScanEANViewModel(FindItemViewModel FIV2) { FIV1 = FIV2; CameraViewModel = new CameraViewModel(); CameraViewModel.BarcodeFoundEventToViewModels += CloseScanWindow; _output = new Output(); }
public ScanEANViewModel(FindItemViewModel FIV2, IOutput output, ICameraViewModel cameraViewModel) { FIV1 = FIV2; CameraViewModel = cameraViewModel; CameraViewModel.BarcodeFoundEventToViewModels += CloseScanWindow; _output = output; }
public ShoppingListViewModel() { _backendConnection = new BackendConnection(); FindItemViewModel = new FindItemViewModel(); _currentItem = new InventoryItem(); InventoryItems = new ObservableCollection <InventoryItem>(); GetShoppingList(); }