Changeset 15371 for trunk/sources/HeuristicLab.MainForm/3.3
- Timestamp:
- 09/19/17 10:49:02 (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
r14185 r15371 64 64 /// </summary> 65 65 void Start(); 66 67 66 void Start(string status); 67 void Start(string status, double progressValue); 68 68 69 69 /// <summary> -
trunk/sources/HeuristicLab.MainForm/3.3/Progress.cs
r14185 r15371 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 }83 74 84 75 public void Cancel() { … … 93 84 94 85 public void Start() { 95 ProgressValue = 0.0; 86 Start(string.Empty); 87 } 88 public void Start(string status) { 89 Start(status, -1.0); 90 } 91 public void Start(string status, double progressValue) { 96 92 ProgressState = ProgressState.Started; 97 } 98 99 public void Start(string status) { 100 Start(); 101 Status = status; 93 Status = status ?? string.Empty; 94 ProgressValue = progressValue; 102 95 } 103 96
Note: See TracChangeset
for help on using the changeset viewer.