private void FileReceiveBuffer(object sender, FileReceiveBufferEventArgs e) { FileTransfersItem item = fileTansfersContainer2.Search( e.ReceiveFileManager.MD5); if (item != null) { BeginInvoke(new MethodInvoker(delegate() { item.TotalTransfersSize += e.Size; })); } }
protected virtual void OnFileReceiveBuffer(FileReceiveBufferEventArgs e) { if (FileReceiveBuffer != null) { FileReceiveBuffer(this, e); } }