Пример #1
0
        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);
        }
Пример #2
0
        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);
        }