Table of Contents

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

Initializes a new instance of the ItemScannerUnitProductionQueueLink class.

public ItemScannerUnitProductionQueueLink(IUnitProductionQueue unitProductionQueue, IItemScannerNumber unitModelNumber)

Parameters

unitProductionQueue IUnitProductionQueue

The unit production queue.

unitModelNumber IItemScannerNumber

The item scanner number for the unit model number.

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

Get or set whether automatic synchronization is enabled. This is enabled by default.

public bool IsEnabled { get; set; }

Property Value

bool

Methods

Stops synchronizing.

public void Dispose()

Updates the unit production queue selection to match the unit model number scan number.

public void SyncFromUnitModelNumberToUnitProductionQueue()

See SelectModel(string) for more details about the behavior.

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()