Changeset 9356
- Timestamp:
- 04/11/13 17:11:32 (12 years ago)
- Location:
- branches
- Files:
-
- 1 deleted
- 3 edited
- 2 moved
Legend:
- Unmodified
- Added
- Removed
-
branches/HeuristicLab.MetaOptimization (trunk integration)/HeuristicLab.Problems.MetaOptimization.Views/3.3/HeuristicLab.Problems.MetaOptimization.Views-3.3.csproj
r8576 r9356 183 183 <DependentUpon>RunCollectionItemDictionaryView.cs</DependentUpon> 184 184 </Compile> 185 <Compile Include="ValueConfigurationViews\ValueConfigurationCheckedItemCollectionView.cs">186 <SubType>UserControl</SubType>187 </Compile>188 <Compile Include="ValueConfigurationViews\ValueConfigurationCheckedItemCollectionView.Designer.cs">189 <DependentUpon>ValueConfigurationCheckedItemCollectionView.cs</DependentUpon>190 </Compile>191 185 <Compile Include="Properties\AssemblyInfo.cs" /> 192 186 </ItemGroup> -
branches/ParameterConfigurationEncoding/HeuristicLab.Encodings.ParameterConfigurationEncoding.Views/3.3/HeuristicLab.Encodings.ParameterConfigurationEncoding.Views-3.3.csproj
r8655 r9356 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>129 123 <Compile Include="ValueConfigurationViews\RangeView.cs"> 130 124 <SubType>UserControl</SubType> … … 132 126 <Compile Include="ValueConfigurationViews\RangeView.Designer.cs"> 133 127 <DependentUpon>RangeView.cs</DependentUpon> 128 </Compile> 129 <Compile Include="ValueConfigurationViews\ValueConfigurationCheckedItemListView.cs"> 130 <SubType>UserControl</SubType> 131 </Compile> 132 <Compile Include="ValueConfigurationViews\ValueConfigurationCheckedItemListView.Designer.cs"> 133 <DependentUpon>ValueConfigurationCheckedItemListView.cs</DependentUpon> 134 134 </Compile> 135 135 <Compile Include="ValueConfigurationViews\ValueView.cs"> -
branches/ParameterConfigurationEncoding/HeuristicLab.Encodings.ParameterConfigurationEncoding.Views/3.3/OptimizableView.cs
r8657 r9356 70 70 } else { 71 71 viewHost.Content = pc.ValueConfigurations; 72 viewHost.ViewType = typeof( CheckedValueConfigurationListView);72 viewHost.ViewType = typeof(ValueConfigurationCheckedItemListView); 73 73 } 74 74 } else if (vc != null) { -
branches/ParameterConfigurationEncoding/HeuristicLab.Encodings.ParameterConfigurationEncoding.Views/3.3/ValueConfigurationViews/ValueConfigurationCheckedItemListView.Designer.cs
r9343 r9356 1 1 namespace HeuristicLab.Encodings.ParameterConfigurationEncoding.Views { 2 partial class ValueConfigurationCheckedItem CollectionView {2 partial class ValueConfigurationCheckedItemListView { 3 3 /// <summary> 4 4 /// Required designer variable. … … 25 25 private void InitializeComponent() { 26 26 components = new System.ComponentModel.Container(); 27 this.AutoScaleMode = System.Windows.Forms.AutoScaleMode. Font;27 this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Inherit; 28 28 } 29 29 -
branches/ParameterConfigurationEncoding/HeuristicLab.Encodings.ParameterConfigurationEncoding.Views/3.3/ValueConfigurationViews/ValueConfigurationCheckedItemListView.cs
r9343 r9356 10 10 [View("ValueConfigurationList View")] 11 11 [Content(typeof(ICheckedValueConfigurationList), IsDefaultView = true)] 12 public sealed partial class ValueConfigurationCheckedItem CollectionView : CheckedItemListView<IValueConfiguration> {12 public sealed partial class ValueConfigurationCheckedItemListView : CheckedItemListView<IValueConfiguration> { 13 13 public new ICheckedValueConfigurationList Content { 14 14 get { return (ICheckedValueConfigurationList)base.Content; } … … 16 16 } 17 17 18 public ValueConfigurationCheckedItem CollectionView() {18 public ValueConfigurationCheckedItemListView() { 19 19 InitializeComponent(); 20 20 this.viewHost.ViewsLabelVisible = false; 21 this.typeSelectorDialog = new TypeSelectorDialog(); 21 22 } 22 23 … … 45 46 46 47 protected override IValueConfiguration CreateItem() { 47 var objectSelectorDialog = new ObjectSelectorDialog<IItem>(Content.ValidValues.GroupBy(x => ApplicationManager.Manager.GetDeclaringPlugin(x.GetType()).Name)); 48 if (objectSelectorDialog.ShowDialog(this) == DialogResult.OK) { 48 typeSelectorDialog.Caption = "Select Item"; 49 typeSelectorDialog.TypeSelector.Caption = "Available Items"; 50 typeSelectorDialog.TypeSelector.Configure(Content.ValidValues.Select(x => x.GetType()), false, false, false); 51 if (typeSelectorDialog.ShowDialog(this) == DialogResult.OK) { 49 52 try { 50 IItem value = (IItem) objectSelectorDialog.Item.Clone();53 IItem value = (IItem)Content.ValidValues.Single(x => x.GetType() == typeSelectorDialog.TypeSelector.SelectedType).Clone(); 51 54 if (value is NullValue) { 52 55 return new NullValueConfiguration();
Note: See TracChangeset
for help on using the changeset viewer.