Free cookie consent management tool by TermsFeed Policy Generator

Changeset 7927


Ignore:
Timestamp:
05/29/12 17:20:31 (12 years ago)
Author:
jkarder
Message:

#1711:

  • removed HiveResourceSelector property in HiveResourceSelectorDialog
  • added View and Content attributes to HiveResourceSelector
  • added check if Content is null in OnContentChanged in HiveResourceSelector
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  
    3333
    3434namespace HeuristicLab.Clients.Hive.JobManager.Views {
     35  [View("Hive Resource Selector View")]
     36  [Content(typeof(IItemList<Resource>), true)]
    3537  public partial class HiveResourceSelector : ItemView, IDisposable {
    3638    private const int slaveImageIndex = 0;
     
    9395
    9496    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      }
    97101      UpdateMainTree();
    98102      ExtractStatistics();
  • trunk/sources/HeuristicLab.Clients.Hive.JobManager/3.3/Views/HiveResourceSelectorDialog.cs

    r7910 r7927  
    2727namespace HeuristicLab.Clients.Hive.JobManager.Views {
    2828  public partial class HiveResourceSelectorDialog : Form {
    29     public HiveResourceSelector HiveResourceSelector {
    30       get { return hiveResourceSelector; }
    31     }
    32 
    3329    public HiveResourceSelectorDialog() {
    3430      InitializeComponent();
Note: See TracChangeset for help on using the changeset viewer.