private void OnDataReceived(IIncomingFileTransfer ft)
 {
     if (DataReceived != null)
     {
         DataReceived(ft);
     }
 }
 private void OnTransferRequestReceived(IIncomingFileTransfer ft)
 {
     if (TransferRequestReceived != null)
     {
         TransferRequestReceived(ft);
     }
 }
Esempio n. 3
0
 private void FileTransferRequestReceived(IIncomingFileTransfer ft)
 {
     mainDialog.InvokeAsync(() =>
     {
         var fileDesc = String.Format("\"{0}\" ({1} bytes)", ft.Name, ft.BytesTotal);
         mainDialog.AddSystemMessage(ft.Sender, "Incoming file transfer", fileDesc);
         var proxy = new FileTransferUiProxy(ft);
         lock (syncUiProxies)
         {
             uiProxies.Add(proxy.Desc, proxy);
         }
         fileDialog.View.Items.Add(proxy.View);
         fileDialog.Show();
     });
 }
Esempio n. 4
0
 private void FileTransferDataReceived(IIncomingFileTransfer ft)
 {
     UpdateFileTransferView(ft);
 }