Register card event handler to be notified about card insertion and removal events.

Namespace: BasicCard.Framework
Assembly: BasicCard (in BasicCard.dll) Version: 2.5.2.0 (2.5.2.0)

Syntax

C#
public void AddCardEventHandler(
	CardEventHandler handler,
	ISynchronizeInvoke invoke
)
Visual Basic
Public Sub AddCardEventHandler ( 
	handler As CardEventHandler,
	invoke As ISynchronizeInvoke
)
Visual C++
public:
void AddCardEventHandler(
	CardEventHandler^ handler, 
	ISynchronizeInvoke^ invoke
)
F#
member AddCardEventHandler : 
        handler : CardEventHandler * 
        invoke : ISynchronizeInvoke -> unit 

Parameters

handler
Type: BasicCard.Framework..::..CardEventHandler
Card event handler to add.
invoke
Type: System.ComponentModel..::..ISynchronizeInvoke
Object to synchronize with on invokation of event handler.

Remarks

Card event handler in general are called from separate thread. This will cause problems when processed in forms or windows controls. This version of function will ensure that the event handler is executed in context (thread) of invoke object. The invoke object may e.g. be a Control or Windows Form. By this no further measures are required for invoked object.

See Also