- Timestamp:
- 05/16/12 16:28:49 (13 years ago)
- Location:
- branches/HeuristicLab.TimeSeries
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HeuristicLab.TimeSeries
- Property svn:mergeinfo changed
-
branches/HeuristicLab.TimeSeries/HeuristicLab.Clients.Hive.JobManager/3.3/Views/RefreshableHiveJobView.cs
r7615 r7842 68 68 Content.IsAllowedPrivilegedChanged += new EventHandler(Content_IsAllowedPrivilegedChanged); 69 69 Content.Loaded += new EventHandler(Content_Loaded); 70 Content.TaskReceived += new EventHandler(Content_TaskReceived); 70 71 } 71 72 … … 82 83 Content.ExecutionTimeChanged -= new EventHandler(Content_ExecutionTimeChanged); 83 84 Content.Loaded -= new EventHandler(Content_Loaded); 85 Content.TaskReceived -= new EventHandler(Content_TaskReceived); 84 86 base.DeregisterContentEvents(); 85 87 } … … 166 168 167 169 #region Content Events 170 void Content_TaskReceived(object sender, EventArgs e) { 171 runCollectionViewHost.Content = GetAllRunsFromJob(Content); 172 } 173 168 174 private void HiveTasks_ItemsAdded(object sender, CollectionItemsChangedEventArgs<HiveTask> e) { 169 175 if (InvokeRequired) 170 176 Invoke(new CollectionItemsChangedEventHandler<HiveTask>(HiveTasks_ItemsAdded), sender, e); 171 177 else { 172 foreach (HiveTask t in e.Items) {173 t.TaskStateChanged += new EventHandler(HiveTask_TaskStateChanged);174 }175 178 SetEnabledStateOfControls(); 176 179 } … … 181 184 Invoke(new CollectionItemsChangedEventHandler<HiveTask>(HiveTasks_ItemsRemoved), sender, e); 182 185 else { 183 foreach (HiveTask t in e.Items) {184 t.TaskStateChanged -= new EventHandler(HiveTask_TaskStateChanged);185 }186 186 SetEnabledStateOfControls(); 187 187 } … … 192 192 Invoke(new CollectionItemsChangedEventHandler<HiveTask>(HiveTasks_CollectionReset), sender, e); 193 193 else { 194 foreach (HiveTask t in e.Items) { 195 t.TaskStateChanged -= new EventHandler(HiveTask_TaskStateChanged); 196 } 197 SetEnabledStateOfControls(); 198 } 199 } 200 201 void HiveTask_TaskStateChanged(object sender, EventArgs e) { 202 runCollectionViewHost.Content = GetAllRunsFromJob(Content); 194 SetEnabledStateOfControls(); 195 } 203 196 } 204 197
Note: See TracChangeset
for help on using the changeset viewer.