/// <summary>
 /// 初始化界面,准备接收
 /// </summary>
 /// <param name="fm"></param>
 public void ReceiveFile( FileMessage fm)
 {
    
     var receiveFile = new FileTransferGrid(false, fm);
   
     sp.Children.Add(receiveFile);
     transferTask.Add(fm.Guid, receiveFile);
     count++;
 }
        /// <summary>
        /// 初始化界面,准备发送
        /// </summary>
        /// <param name="fm"></param>
        public void SendFile( FileMessage fm)
        {
            
            var sendFile=new FileTransferGrid(true, fm);
           
            sp.Children.Add(sendFile);
             transferTask.Add(fm.Guid,sendFile);
            count++;

        }
Exemple #3
0
 public TransferFileUtil(FileMessage fm, FileTransferGrid fileTransferGrid)
 {
     this.fm = fm;
     this.fileTransferGrid = fileTransferGrid;
 }