public ScanAndRepairProgress(int totalFile, int currentIndex, ExLog progressLog) { ProgressPercentage = Convert.ToInt32( Math.Round((double)currentIndex / totalFile * 100, MidpointRounding.ToEven)); TotalFile = totalFile; CurrentIndex = currentIndex; ScanAndRepairFileProgress = null; ProgressLog = progressLog; }
public ScanAndRepairFileProgress(string fileName, int totalProgressPercentage, ExLog progressLog) { FileName = fileName; TotalProgressPercentage = totalProgressPercentage; ProgressLog = progressLog; }