Interface IUnitSelector
- Namespace
- Acuit.Pinpoint.Workstation
- Assembly
- Acuit.Pinpoint.Workstation.Interfaces.dll
A unit selector, used to selects a unit to work with at the workstation.
public interface IUnitSelector
Remarks
See UnitSelector.
Properties
StatusText
Gets the text to show for the workstation status, or null to use the default "Waiting for bar code scan..." text.
string StatusText { get; }
Property Value
Remarks
If this value changes while the unit selector is active, the class implementing IUnitSelector should also implement INotifyPropertyChanged and raise PropertyChanged when StatusText changes.
Methods
OnStoppedSelectingUnit()
Called when the unit selector is no longer active, either because a unit was selected or because unit selection was canceled (e.g., the worker logged out).
void OnStoppedSelectingUnit()
StartSelectingUnit(UnitSelectorSeedData, IUnitSelectorHost)
Start selecting a unit.
void StartSelectingUnit(UnitSelectorSeedData seedData, IUnitSelectorHost unitSelectorHost)
Parameters
seedData
UnitSelectorSeedDataInitial seed data for unit selection.
unitSelectorHost
IUnitSelectorHostThe unit selector host.
Remarks
The implementation for this method can throw InvalidOperationException if a unit selection cannot be initiated for some reason (e.g., a configuration issue). If this happens, the exception details will be logged, an alarm will be raised with the exception message as the alarm text, and the workstation workflow will be stopped.
Exceptions
- InvalidOperationException
A unit cannot be selected.