private void ItemCancelButtonClick(object sender, EventArgs e) { FileTransfersItem item = sender as FileTransfersItem; SendFileManager sendFileManager = item.Tag as SendFileManager; udpSendFile.CancelSend(sendFileManager.MD5); fileTansfersContainer.RemoveItem(item); }
private void ItemCancelButtonClick(object sender, EventArgs e) { FileTransfersItem item = sender as FileTransfersItem; SendFileManager sendFileManager = item.Tag as SendFileManager; udpSendFile.CancelSend(sendFileManager.MD5); fileTansfersContainer.RemoveItem(item); AppendLog(string.Format( "取消发送文件 {0} 。", sendFileManager.Name), true); }