CashDrawerEventSource.DrawerOpened Evento
Definição
Importante
Algumas informações se referem a produtos de pré-lançamento que podem ser substancialmente modificados antes do lançamento. A Microsoft não oferece garantias, expressas ou implícitas, das informações aqui fornecidas.
Ocorre quando a gaveta de dinheiro é aberta.
// Register
event_token DrawerOpened(TypedEventHandler<CashDrawerEventSource, CashDrawerOpenedEventArgs const&> const& handler) const;
// Revoke with event_token
void DrawerOpened(event_token const* cookie) const;
// Revoke with event_revoker
CashDrawerEventSource::DrawerOpened_revoker DrawerOpened(auto_revoke_t, TypedEventHandler<CashDrawerEventSource, CashDrawerOpenedEventArgs const&> const& handler) const;
public event TypedEventHandler<CashDrawerEventSource,CashDrawerOpenedEventArgs> DrawerOpened;
function onDrawerOpened(eventArgs) { /* Your code */ }
cashDrawerEventSource.addEventListener("draweropened", onDrawerOpened);
cashDrawerEventSource.removeEventListener("draweropened", onDrawerOpened);
- or -
cashDrawerEventSource.ondraweropened = onDrawerOpened;
Public Custom Event DrawerOpened As TypedEventHandler(Of CashDrawerEventSource, CashDrawerOpenedEventArgs)