Exemple #1
0
        void CheckUpdateSnapshot()
        {
            DateTime now = DateTime.Now;

            if (this.Snapshot != null && (now - this.Snapshot.Time).TotalMilliseconds < 100)
            {
                return;
            }
            this.Snapshot = new ProgressSnapshot()
            {
                Time           = now,
                TransferedSize = TransferedSize
            };
        }
 void CheckUpdateSnapshot()
 {
     DateTime now = DateTime.Now;
     if (this.Snapshot != null && (now - this.Snapshot.Time).TotalMilliseconds < 100)
     {
         return;
     }
     this.Snapshot = new ProgressSnapshot()
     {
         Time = now,
         TransferedSize = TransferedSize
     };
 }