private void OnDataReceived(IIncomingFileTransfer ft) { if (DataReceived != null) { DataReceived(ft); } }
private void OnTransferRequestReceived(IIncomingFileTransfer ft) { if (TransferRequestReceived != null) { TransferRequestReceived(ft); } }
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(); }); }
private void FileTransferDataReceived(IIncomingFileTransfer ft) { UpdateFileTransferView(ft); }