Пример #1
0
 public void AddTransfer(Affirma.ThreeSharp.Model.Transfer transfer)
 {
     String totalBytes = (transfer.BytesTotal == 0) ? "Unknown" : transfer.BytesTotal.ToString();
     if (!this.ContainsTransfer(transfer))
     {
         this.Rows.Add(new object[] { transfer.ID, transfer.Method, transfer.BucketName, transfer.Key, transfer.BytesTransferred, totalBytes });
     }
     else
     {
         DataRow dr = this.Rows.Find(transfer.ID);
         dr["BytesTransferred"] = transfer.BytesTransferred;
         dr["BytesTotal"] = transfer.BytesTotal;
     }
 }
Пример #2
0
 private bool ContainsTransfer(Affirma.ThreeSharp.Model.Transfer transfer)
 {
     return this.Rows.Contains(transfer.ID);
 }