Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
04/11/13 17:11:32 (12 years ago)
Author:
jkarder
Message:

#1853:

  • moved ValueConfigurationCheckedItemCollectionView to ParameterConfigurationEncoding
  • renamed ValueConfigurationCheckedItemCollectionView to ValueConfigurationCheckedItemListView
File:
1 moved

Legend:

Unmodified
Added
Removed
  • branches/ParameterConfigurationEncoding/HeuristicLab.Encodings.ParameterConfigurationEncoding.Views/3.3/ValueConfigurationViews/ValueConfigurationCheckedItemListView.cs

    r9343 r9356  
    1010  [View("ValueConfigurationList View")]
    1111  [Content(typeof(ICheckedValueConfigurationList), IsDefaultView = true)]
    12   public sealed partial class ValueConfigurationCheckedItemCollectionView : CheckedItemListView<IValueConfiguration> {
     12  public sealed partial class ValueConfigurationCheckedItemListView : CheckedItemListView<IValueConfiguration> {
    1313    public new ICheckedValueConfigurationList Content {
    1414      get { return (ICheckedValueConfigurationList)base.Content; }
     
    1616    }
    1717
    18     public ValueConfigurationCheckedItemCollectionView() {
     18    public ValueConfigurationCheckedItemListView() {
    1919      InitializeComponent();
    2020      this.viewHost.ViewsLabelVisible = false;
     21      this.typeSelectorDialog = new TypeSelectorDialog();
    2122    }
    2223
     
    4546
    4647    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) {
    4952        try {
    50           IItem value = (IItem)objectSelectorDialog.Item.Clone();
     53          IItem value = (IItem)Content.ValidValues.Single(x => x.GetType() == typeSelectorDialog.TypeSelector.SelectedType).Clone();
    5154          if (value is NullValue) {
    5255            return new NullValueConfiguration();
Note: See TracChangeset for help on using the changeset viewer.