Class ItemScannerUnitProductionQueueLink
- Namespace
- Acuit.Pinpoint.Workstation
- Assembly
- Acuit.Pinpoint.Workstation.Interfaces.dll
A helper that keeps the unit production queue synchronized with a unit model number in an item scanner.
public sealed class ItemScannerUnitProductionQueueLink : IDisposable
- Inheritance
-
ItemScannerUnitProductionQueueLink
- Implements
- Inherited Members
Constructors
ItemScannerUnitProductionQueueLink(IUnitProductionQueue, IItemScannerNumber)
Initializes a new instance of the ItemScannerUnitProductionQueueLink class.
public ItemScannerUnitProductionQueueLink(IUnitProductionQueue unitProductionQueue, IItemScannerNumber unitModelNumber)
Parameters
unitProductionQueue
IUnitProductionQueueThe unit production queue.
unitModelNumber
IItemScannerNumberThe item scanner number for the unit model number.
Remarks
The unit model number will immediately be updated to reflect the currently-selected model in the unit production queue, and then the two will continue to be kept synchronized until Dispose() is called.
This is safe to call even if the unit production queue isn't currently active (i.e., IsActive is false, in which case, it will do nothing.
Exceptions
- ArgumentNullException
unitProductionQueue
is null.- ArgumentNullException
unitModelNumber
is null.
Properties
IsEnabled
Get or set whether automatic synchronization is enabled. This is enabled by default.
public bool IsEnabled { get; set; }
Property Value
Methods
Dispose()
Stops synchronizing.
public void Dispose()
SyncFromUnitModelNumberToUnitProductionQueue()
Updates the unit production queue selection to match the unit model number scan number.
public void SyncFromUnitModelNumberToUnitProductionQueue()
Remarks
See SelectModel(string) for more details about the behavior.
SyncFromUnitProductionQueueToUnitModelNumber()
Updates the unit model number scan number from the currently-selected unit production queue item. If there is no item selected in the queue, the scan number will not be modified.
public void SyncFromUnitProductionQueueToUnitModelNumber()