Share via


CashDrawerBase.OnDrawerStateChanged Event

2/27/2008

The CashDrawerBase class raises OnDrawerStateChanged events to inform the service object that the value of the CashDrawerProperties.DrawerOpened property has been updated and the application has been notified of a drawer status change.

Namespace: Microsoft.PointOfService.BaseServiceObjects
Assembly: Microsoft.PointOfService.ControlBase (in microsoft.pointofservice.controlbase.dll)

Syntax

'Declaration
Protected Event OnDrawerStateChanged As DrawerStateChangedEventHandler
protected event DrawerStateChangedEventHandler OnDrawerStateChanged
protected:
event DrawerStateChangedEventHandler^ OnDrawerStateChanged {
    void add (DrawerStateChangedEventHandler^ value);
    void remove (DrawerStateChangedEventHandler^ value);
}
/** @event */
protected void add_OnDrawerStateChanged (DrawerStateChangedEventHandler value)

/** @event */
protected void remove_OnDrawerStateChanged (DrawerStateChangedEventHandler value)

Remarks

The CashDrawerBase class raises OnDrawerStateChanged events to inform the service object that the value of the CashDrawerProperties.DrawerOpened property has been updated and the application has been notified of a drawer status change. A DrawerStateChangedEventArgs.DrawerOpened value of true indicates the drawer status has changed to “open”; a DrawerStateChangedEventArgs.DrawerOpened value of false indicates the drawer status has changed to “closed”.

Service objects should consider implementing OnDrawerStateChanged when they want to be notified by the CashDrawerBase class of drawer state changes.

See Also

Reference

CashDrawerBase Class
CashDrawerBase Members
Microsoft.PointOfService.BaseServiceObjects Namespace
DrawerStateChangedEventArgs
CashDrawer.DrawerOpened Property