Changeset 6734 for branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Clients.Hive.Administrator/3.3/Views/ResourcesView.cs
- Timestamp:
- 09/11/11 21:54:39 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Clients.Hive.Administrator/3.3/Views/ResourcesView.cs
r6688 r6734 49 49 updateScheduleControl.UpdateAction = new Action(UpdateSchedule); 50 50 updateSlaveGroup.UpdateAction = new Action(UpdateSlaveGroups); 51 } 51 52 updateSlaveGroup.Update(); 53 } 54 52 55 53 56 #region Register Content Events … … 131 134 protected override void SetEnabledStateOfControls() { 132 135 base.SetEnabledStateOfControls(); 133 // TODO: Put code here to enable or disable controls based on whether the Content is/not null or the view is ReadOnly134 136 } 135 137 … … 293 295 void ResetView() { 294 296 treeSlaveGroup.Nodes.Clear(); 297 295 298 if (slaveView.Content != null && slaveView.Content is SlaveGroup) { 296 299 slaveView.Content.PropertyChanged -= new System.ComponentModel.PropertyChangedEventHandler(SlaveViewContent_PropertyChanged); … … 301 304 302 305 private void UpdateSlaveGroups() { 303 this.Invoke(new Action(ResetView)); 304 Content.Clear(); 306 if (this.InvokeRequired) { 307 this.Invoke(new Action(ResetView)); 308 } else { 309 ResetView(); 310 } 311 305 312 IItemList<Resource> resources = new ItemList<Resource>(); 306 313
Note: See TracChangeset
for help on using the changeset viewer.