- Timestamp:
- 07/02/12 16:39:06 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Clients.Hive.Views/3.3/HiveTasks/OptimizerHiveTaskView.cs
r8165 r8181 32 32 public partial class OptimizerHiveTaskView : HiveTaskView { 33 33 private Progress progress; 34 private ProgressView progressView; 34 35 35 36 public new OptimizerHiveTask Content { … … 60 61 base.RegisterContentEvents(); 61 62 Content.IsControllableChanged += new EventHandler(Content_IsControllableChanged); 63 progressView = new ProgressView(this, progress); 62 64 } 63 65 64 66 protected override void DeregisterContentEvents() { 65 67 Content.IsControllableChanged -= new EventHandler(Content_IsControllableChanged); 68 if (progressView != null) { 69 progressView.Content = null; 70 progressView.Dispose(); 71 progressView = null; 72 } 66 73 base.DeregisterContentEvents(); 67 74 } … … 102 109 progress.Status = "Pausing task. Please be patient for the command to take effect."; 103 110 progress.ProgressState = ProgressState.Started; 104 using (var view = new ProgressView(this, progress)) { 105 Content.Pause(); 106 } 111 Content.Pause(); 107 112 } 108 113 … … 110 115 progress.Status = "Stopping task. Please be patient for the command to take effect."; 111 116 progress.ProgressState = ProgressState.Started; 112 using (var view = new ProgressView(this, progress)) { 113 Content.Stop(); 114 } 117 Content.Stop(); 115 118 } 116 119 … … 118 121 progress.Status = "Resuming task. Please be patient for the command to take effect."; 119 122 progress.ProgressState = ProgressState.Started; 120 using (var view = new ProgressView(this, progress)) { 121 Content.Restart(); 122 } 123 Content.Restart(); 123 124 } 124 125
Note: See TracChangeset
for help on using the changeset viewer.