Esempio n. 1
0
 internal void OnFileTransferNotification(AsyncResult TransferResult)
 {
     if (FileTransferNotification != null)
         FileTransferNotification(TransferResult);
 }
Esempio n. 2
0
 private void TransferThreadProc()
 {
     try
     {
         StartTransfer();
         m_transferResult = new AsyncResult("Success.", AsyncResult.Complete);
         m_session.Host.OnFileTransferNotification(m_transferResult);
     }
     catch (ExceptionBase e)
     {
         m_transferResult = new AsyncResult("Transfer fail: " + e.Message, AsyncResult.Fail);
         m_session.Host.OnFileTransferNotification(m_transferResult);
     }
 }