Beispiel #1
0
 protected virtual void OnReceiveFileComplete(FileReceiveCompleteEventArgs e)
 {
     if (ReceiveFileComplete != null)
     {
         ReceiveFileComplete(this, e);
     }
 }
Beispiel #2
0
        /// <summary>
        /// 完成接收文件
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void ReceiveFileManagerReceiveFileComplete(
            object sender, FileReceiveCompleteEventArgs e)
        {
            ReceiveFileManager receiveFileManager =
                sender as ReceiveFileManager;

            OnFileReceiveComplete(new FileReceiveEventArgs(receiveFileManager));
            ReceiveFileManagerList.Remove(receiveFileManager.MD5);
        }