Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
09/14/12 11:40:21 (12 years ago)
Author:
jkarder
Message:

#1853:

  • fixed possible deselection of all value configurations
  • set AutoScaleMode to Inherit in OptimizableView
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/ParameterConfigurationEncoding/HeuristicLab.Encodings.ParameterConfigurationEncoding/3.3/ValueConfigurations/CheckedValueConfigurationCollection.cs

    r8644 r8655  
    2828
    2929namespace HeuristicLab.Encodings.ParameterConfigurationEncoding {
    30   // TODO: check that at least 1 element needs to be selected
    3130  // TODO: control creatable item types ### EDIT: done?
    3231  [StorableClass]
     
    8180    private void RegisterEvents() {
    8281      this.ItemsAdded += new CollectionItemsChangedEventHandler<IndexedItem<IValueConfiguration>>(CheckedValueConfigurationList_ItemsAdded);
    83       this.CheckedItemsChanged += new CollectionItemsChangedEventHandler<IndexedItem<IValueConfiguration>>(CheckedValueConfigurationList_CheckedItemsChanged);
    8482    }
    8583
    8684    private void DeregisterEvents() {
    87       this.CheckedItemsChanged -= new CollectionItemsChangedEventHandler<IndexedItem<IValueConfiguration>>(CheckedValueConfigurationList_CheckedItemsChanged);
    8885      this.ItemsAdded -= new CollectionItemsChangedEventHandler<IndexedItem<IValueConfiguration>>(CheckedValueConfigurationList_ItemsAdded);
    8986    }
     
    9996      }
    10097    }
    101     private void CheckedValueConfigurationList_CheckedItemsChanged(object sender, CollectionItemsChangedEventArgs<IndexedItem<IValueConfiguration>> e) {
    102       // TODO: view does not get notified
    103       if (!this.CheckedItems.Any()) this.SetItemCheckedState(e.Items.Single().Value, true);
    104     }
    10598    #endregion
    106 
    10799  }
    108100}
Note: See TracChangeset for help on using the changeset viewer.