Handle TWAIN transfer events
v3The TwainSession provides several key events for managing the scanning lifecycle:
TransferReady: Fired before a transfer occurs. You can cancel the current or subsequent transfers using the event object.DataTransferred: Fired after a transfer. If using native image transfer, the event arguments provide aGetNativeImageStream()method to convert the data pointer into aSystem.IO.Stream.TransferError: Fired when exceptions occur during the transfer phase.SourceDisabled: Fired when the data source has finished its operation.