예제 #1
0
파일: SendFileForm.cs 프로젝트: Ato42/CMS
        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);
        }