Changeset 8655
- Timestamp:
- 09/14/12 11:40:21 (12 years ago)
- Location:
- branches/ParameterConfigurationEncoding
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/ParameterConfigurationEncoding/HeuristicLab.Encodings.ParameterConfigurationEncoding.Views/3.3/HeuristicLab.Encodings.ParameterConfigurationEncoding.Views-3.3.csproj
r8544 r8655 121 121 <Compile Include="Properties\AssemblyInfo.cs" /> 122 122 <None Include="Properties\AssemblyInfo.cs.frame" /> 123 <Compile Include="ValueConfigurationViews\CheckedValueConfigurationListView.cs"> 124 <SubType>UserControl</SubType> 125 </Compile> 126 <Compile Include="ValueConfigurationViews\CheckedValueConfigurationListView.Designer.cs"> 127 <DependentUpon>CheckedValueConfigurationListView.cs</DependentUpon> 128 </Compile> 123 129 <Compile Include="ValueConfigurationViews\RangeView.cs"> 124 130 <SubType>UserControl</SubType> -
branches/ParameterConfigurationEncoding/HeuristicLab.Encodings.ParameterConfigurationEncoding.Views/3.3/OptimizableView.Designer.cs
r8524 r8655 79 79 // 80 80 this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); 81 this.AutoScaleMode = System.Windows.Forms.AutoScaleMode. Font;81 this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Inherit; 82 82 this.Controls.Add(this.optimizeCheckBox); 83 83 this.Controls.Add(this.viewHost); -
branches/ParameterConfigurationEncoding/HeuristicLab.Encodings.ParameterConfigurationEncoding.Views/3.3/OptimizableView.cs
r8648 r8655 70 70 } else { 71 71 viewHost.Content = pc.ValueConfigurations; 72 viewHost.ViewType = typeof(CheckedValueConfigurationListView); 72 73 } 73 74 } else if (vc != null) { -
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.