CashDrawerEventSource.DrawerClosed Evento
Definición
Importante
Parte de la información hace referencia a la versión preliminar del producto, que puede haberse modificado sustancialmente antes de lanzar la versión definitiva. Microsoft no otorga ninguna garantía, explícita o implícita, con respecto a la información proporcionada aquí.
Se produce cuando se cierra el cajón de efectivo.
// Register
event_token DrawerClosed(TypedEventHandler<CashDrawerEventSource, CashDrawerClosedEventArgs const&> const& handler) const;
// Revoke with event_token
void DrawerClosed(event_token const* cookie) const;
// Revoke with event_revoker
CashDrawerEventSource::DrawerClosed_revoker DrawerClosed(auto_revoke_t, TypedEventHandler<CashDrawerEventSource, CashDrawerClosedEventArgs const&> const& handler) const;
public event TypedEventHandler<CashDrawerEventSource,CashDrawerClosedEventArgs> DrawerClosed;
function onDrawerClosed(eventArgs) { /* Your code */ }
cashDrawerEventSource.addEventListener("drawerclosed", onDrawerClosed);
cashDrawerEventSource.removeEventListener("drawerclosed", onDrawerClosed);
- or -
cashDrawerEventSource.ondrawerclosed = onDrawerClosed;
Public Custom Event DrawerClosed As TypedEventHandler(Of CashDrawerEventSource, CashDrawerClosedEventArgs)