Changeset 15400 for trunk/sources/HeuristicLab.MainForm
- Timestamp:
- 10/04/17 13:55:43 (7 years ago)
- Location:
- trunk/sources/HeuristicLab.MainForm/3.3
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.MainForm/3.3/Interfaces/IProgress.cs
r15371 r15400 64 64 /// </summary> 65 65 void Start(); 66 66 67 void Start(string status); 67 void Start(string status, double progressValue);68 68 69 69 /// <summary> -
trunk/sources/HeuristicLab.MainForm/3.3/Progress.cs
r15371 r15400 72 72 canBeCanceled = false; 73 73 } 74 public Progress(string status) 75 : this() { 76 this.status = status; 77 } 78 public Progress(string status, ProgressState state) 79 : this() { 80 this.status = status; 81 this.progressState = state; 82 } 74 83 75 84 public void Cancel() { … … 84 93 85 94 public void Start() { 86 Start(string.Empty); 95 ProgressValue = 0.0; 96 ProgressState = ProgressState.Started; 87 97 } 98 88 99 public void Start(string status) { 89 Start(status, -1.0); 90 } 91 public void Start(string status, double progressValue) { 92 ProgressState = ProgressState.Started; 93 Status = status ?? string.Empty; 94 ProgressValue = progressValue; 100 Start(); 101 Status = status; 95 102 } 96 103
Note: See TracChangeset
for help on using the changeset viewer.