Ejemplo n.º 1
0
    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;
        }
      }
    }
Ejemplo n.º 2
0
 private void UpdateProgress(JobResult jobResult)
 {
   ProcessJobResult(jobResult);
   UpdateGui();
 }
Ejemplo n.º 3
0
 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;
 }