コード例 #1
0
 /// <summary>
 /// Raises the <see cref="TransferError"/> event.
 /// </summary>
 /// <param name="e"></param>
 protected virtual void OnTransferError(TransferErrorEventArgs e)
 {
     ExternalInvoke(() =>
     {
         var handler = TransferError;
         handler?.Invoke(this, e);
     });
 }
コード例 #2
0
 void ITwainSessionInternal.SafeSyncableRaiseEvent(TransferErrorEventArgs e)
 {
     SafeSyncableRaiseOnEvent(OnTransferError, TransferError, e);
 }
コード例 #3
0
ファイル: TwainSession.cs プロジェクト: lukaszmn/ntwain
 /// <summary>
 /// Called when an error has been encountered during transfer.
 /// </summary>
 /// <param name="e">The <see cref="TransferErrorEventArgs"/> instance containing the event data.</param>
 protected virtual void OnTransferError(TransferErrorEventArgs e)
 {
 }