Changeset 7927 for trunk/sources/HeuristicLab.Clients.Hive.JobManager/3.3/Views/HiveResourceSelector.cs
- Timestamp:
- 05/29/12 17:20:31 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Clients.Hive.JobManager/3.3/Views/HiveResourceSelector.cs
r7910 r7927 33 33 34 34 namespace HeuristicLab.Clients.Hive.JobManager.Views { 35 [View("Hive Resource Selector View")] 36 [Content(typeof(IItemList<Resource>), true)] 35 37 public partial class HiveResourceSelector : ItemView, IDisposable { 36 38 private const int slaveImageIndex = 0; … … 93 95 94 96 protected override void OnContentChanged() { 95 base.OnContentChanged(); 96 selectedResources = new HashSet<Resource>(Content.Where(x => selectedResources.Any(y => x.Id == y.Id))); 97 if (Content != null) { 98 base.OnContentChanged(); 99 selectedResources = new HashSet<Resource>(Content.Where(x => selectedResources.Any(y => x.Id == y.Id))); 100 } 97 101 UpdateMainTree(); 98 102 ExtractStatistics();
Note: See TracChangeset
for help on using the changeset viewer.