Changeset 8145 for trunk/sources/HeuristicLab.MainForm
- Timestamp:
- 06/28/12 12:00:51 (12 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
r7582 r8145 28 28 29 29 void Finish(); 30 void SignalSuccessfulCancelation(); 30 31 31 32 event EventHandler Finished; 32 33 event EventHandler StatusChanged; 33 34 event EventHandler ProgressValueChanged; 35 36 bool CancelRequested { get; set; } 37 event EventHandler Canceled; 38 39 34 40 } 35 41 } -
trunk/sources/HeuristicLab.MainForm/3.3/Progress.cs
r7582 r8145 37 37 } 38 38 39 public bool CancelRequested { get; set; } 40 39 41 private double progressValue; 40 42 public double ProgressValue { … … 60 62 } 61 63 64 public void SignalSuccessfulCancelation() { 65 OnCanceled(); 66 } 67 62 68 #region Event Handler 69 public event EventHandler Canceled; 70 private void OnCanceled() { 71 var handler = Canceled; 72 try { 73 if (handler != null) handler(this, EventArgs.Empty); 74 } 75 catch (Exception) { } 76 } 77 63 78 public event EventHandler Finished; 64 79 private void OnFinished() {
Note: See TracChangeset
for help on using the changeset viewer.