예제 #1
0
 private void FileReceiveBuffer(object sender, FileReceiveBufferEventArgs e)
 {
     FileTransfersItem item = fileTansfersContainer2.Search(
         e.ReceiveFileManager.MD5);
     if (item != null)
     {
         BeginInvoke(new MethodInvoker(delegate()
         {
             item.TotalTransfersSize += e.Size;
         }));
     }
 }
예제 #2
0
 protected virtual void OnFileReceiveBuffer(FileReceiveBufferEventArgs e)
 {
     if (FileReceiveBuffer != null)
     {
         FileReceiveBuffer(this, e);
     }
 }