Changeset 7927
- Timestamp:
- 05/29/12 17:20:31 (12 years ago)
- Location:
- trunk/sources/HeuristicLab.Clients.Hive.JobManager/3.3/Views
- Files:
-
- 2 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(); -
trunk/sources/HeuristicLab.Clients.Hive.JobManager/3.3/Views/HiveResourceSelectorDialog.cs
r7910 r7927 27 27 namespace HeuristicLab.Clients.Hive.JobManager.Views { 28 28 public partial class HiveResourceSelectorDialog : Form { 29 public HiveResourceSelector HiveResourceSelector {30 get { return hiveResourceSelector; }31 }32 33 29 public HiveResourceSelectorDialog() { 34 30 InitializeComponent();
Note: See TracChangeset
for help on using the changeset viewer.