private void ClaimPOSDevices() { // open (if not already opened), claim and enable the cash drawer and receipt printer. ICashDrawer drawer = _posDeviceManager.GetCashDrawer(); drawer.Claim(); drawer.Enable(); IReceiptPrinter printer = _posDeviceManager.GetReceiptPrinter(); printer.Claim(); printer.Enable(); }
public PaymentViewModel(BBQRMSEntities dataService, IMessageBus messageBus, OrderViewModel order, IPOSDeviceManager posDeviceManager) { Order = order; DataService = dataService; MessageBus = messageBus; _cashDrawer = posDeviceManager.GetCashDrawer(); PaymentTypes = new ObservableCollection <PaymentType>(DataService.PaymentTypes.Execute()); PaymentType = PaymentTypes.Where(x => x.Id == ServerProxy.PaymentTypes.Cash).FirstOrDefault(); PaymentVisible = "Visible"; PaymentZIndex = 200; }