Exemplo n.º 1
0
 protected void OnSynchronizeStepProgress(SynchonizeStep step, long complete, long total, TimeSpan elapsedTime)
 {
     if (SynchronizeStepProgress != null)
     {
         SynchronizeStepProgress(this, new SynchronizeFilesEventArgs(step, complete, total, elapsedTime));
     }
 }
Exemplo n.º 2
0
 public SynchronizeFilesEventArgs(SynchonizeStep step, long complete, long total, TimeSpan elapsed)
 {
     Step            = step;
     Completed       = complete;
     Total           = total;
     PercentComplete = ((float)complete / (float)total) * 100;
     ElapsedTime     = elapsed;
 }