Changeset 8655 for branches/ParameterConfigurationEncoding/HeuristicLab.Encodings.ParameterConfigurationEncoding/3.3/ValueConfigurations
- Timestamp:
- 09/14/12 11:40:21 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/ParameterConfigurationEncoding/HeuristicLab.Encodings.ParameterConfigurationEncoding/3.3/ValueConfigurations/CheckedValueConfigurationCollection.cs
r8644 r8655 28 28 29 29 namespace HeuristicLab.Encodings.ParameterConfigurationEncoding { 30 // TODO: check that at least 1 element needs to be selected31 30 // TODO: control creatable item types ### EDIT: done? 32 31 [StorableClass] … … 81 80 private void RegisterEvents() { 82 81 this.ItemsAdded += new CollectionItemsChangedEventHandler<IndexedItem<IValueConfiguration>>(CheckedValueConfigurationList_ItemsAdded); 83 this.CheckedItemsChanged += new CollectionItemsChangedEventHandler<IndexedItem<IValueConfiguration>>(CheckedValueConfigurationList_CheckedItemsChanged);84 82 } 85 83 86 84 private void DeregisterEvents() { 87 this.CheckedItemsChanged -= new CollectionItemsChangedEventHandler<IndexedItem<IValueConfiguration>>(CheckedValueConfigurationList_CheckedItemsChanged);88 85 this.ItemsAdded -= new CollectionItemsChangedEventHandler<IndexedItem<IValueConfiguration>>(CheckedValueConfigurationList_ItemsAdded); 89 86 } … … 99 96 } 100 97 } 101 private void CheckedValueConfigurationList_CheckedItemsChanged(object sender, CollectionItemsChangedEventArgs<IndexedItem<IValueConfiguration>> e) {102 // TODO: view does not get notified103 if (!this.CheckedItems.Any()) this.SetItemCheckedState(e.Items.Single().Value, true);104 }105 98 #endregion 106 107 99 } 108 100 }
Note: See TracChangeset
for help on using the changeset viewer.