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