internal void OnFileTransferNotification(AsyncResult TransferResult) { if (FileTransferNotification != null) FileTransferNotification(TransferResult); }
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); } }