Changeset 1688
- Timestamp:
- 1/25/2010 12:55:15 PM (3 years ago)
- Location:
- trunk/eraser6
- Files:
-
- 3 edited
-
Eraser.Manager/DirectExecutor.cs (modified) (7 diffs)
-
Eraser.Manager/ProgressManager.cs (modified) (1 diff)
-
Eraser/UpdateForm.cs (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/eraser6/Eraser.Manager/DirectExecutor.cs
r1676 r1688 402 402 delegate(int currentFile, int totalFiles, string currentFilePath) 403 403 { 404 tipSearch. Completed = tipSearch.Total;404 tipSearch.MarkComplete(); 405 405 tipProgress.Total = totalFiles; 406 406 tipProgress.Completed = currentFile; … … 482 482 483 483 //Mark the main bulk of the progress as complete 484 mainProgress. Completed = mainProgress.Total;484 mainProgress.MarkComplete(); 485 485 486 486 //Erase old resident file system table files … … 502 502 ); 503 503 504 residentProgress. Completed = residentProgress.Total = 1;504 residentProgress.MarkComplete(); 505 505 } 506 506 finally … … 513 513 new TaskProgressChangedEventArgs(string.Empty, 0, 0))); 514 514 fsManager.DeleteFolder(info); 515 tempFiles.Completed = tempFiles.Total = 1;515 tempFiles.Completed = tempFiles.Total; 516 516 } 517 517 … … 537 537 ); 538 538 539 structureProgress. Completed = structureProgress.Total;539 structureProgress.MarkComplete(); 540 540 target.Progress = null; 541 541 } … … 612 612 throw new OperationCanceledException(S._("The task was cancelled.")); 613 613 614 step.Total = totalData; 614 615 step.Completed += lastWritten; 615 step.Total = totalData;616 616 task.OnProgressChanged(target, 617 617 new ProgressChangedEventArgs(step, … … 623 623 if (fileInfo != null) 624 624 fsManager.DeleteFile(fileInfo); 625 step. Completed = step.Total = 1;625 step.MarkComplete(); 626 626 } 627 627 catch (UnauthorizedAccessException) -
trunk/eraser6/Eraser.Manager/ProgressManager.cs
r1680 r1688 96 96 { 97 97 /// <summary> 98 /// Marks this task as complete. 99 /// </summary> 100 public void MarkComplete() 101 { 102 if (total == 0) 103 completed = total = 1; 104 else 105 completed = total; 106 } 107 108 /// <summary> 98 109 /// Gets or sets the number of work units already completed. 99 110 /// </summary> -
trunk/eraser6/Eraser/UpdateForm.cs
r1675 r1688 731 731 732 732 //Let the event handler know the download is complete. 733 step. Completed = step.Total;733 step.MarkComplete(); 734 734 OnProgress(new ProgressEventArgs(step.Progress, progress.Progress, 735 735 update, S._("Downloaded: {0}", update.Name)));
Note: See TracChangeset
for help on using the changeset viewer.
