private void ProcessJobResult(JobResult jobResult) { if (jobResult.Passed) { successfulJobs++; } else { switch (jobResult.FailurePoint) { case FailureType.Load: loadFailures++; break; case FailureType.Modify: modifyFailures++; break; case FailureType.Write: writeFailures++; break; } } }
private void UpdateProgress(JobResult jobResult) { ProcessJobResult(jobResult); UpdateGui(); }
private JobResult RunSingleRepairJob(string filename, int jobID) { var loadFile = new LoadFile(filename); var destination = new Destination(fileSaveRule, loadFile.Path); var modifiedFile = new ModifiedFile(loadFile.Bytes, oldDimensions.AsBytes, newDimensions.AsBytes, destination.Path); var writeFile = new WriteFile(modifiedFile); var jobResult = new JobResult(jobID, loadFile, modifiedFile, writeFile); return jobResult; }