Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
04/27/20 15:53:26 (4 years ago)
Author:
dpiringe
Message:

#3026:

  • added error output for failed runner initialization
  • reorganised some final view models
  • TargetedJsonItemType (in JsonItemVMBase) now automatically returns the type of the defined JsonItem
  • code cleanup
  • refactored RegressionProblemDataConverter
  • added lots of comments
  • added new view for StringArrayJsonItem
  • added new UI component for concrete restricted items and used it in JsonItemConcreteItemArrayControl and JsonItemValidValuesControl
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/3026_IntegrationIntoSymSpace/HeuristicLab.JsonInterface.OptimizerIntegration/ViewModels/StringValueVM.cs

    r17473 r17519  
    99namespace HeuristicLab.JsonInterface.OptimizerIntegration {
    1010  public class StringValueVM : JsonItemVMBase<StringJsonItem> {
    11     public override Type TargetedJsonItemType => typeof(StringJsonItem);
    1211    public override UserControl Control =>
    1312       new JsonItemValidValuesControl(this);
     
    3736      }
    3837    }
     38  }
    3939
     40  public class StringArrayVM : JsonItemVMBase<StringArrayJsonItem> {
     41    public override UserControl Control =>
     42       new JsonItemConcreteItemArrayControl(this);
     43
     44    public string[] Value {
     45      get => Item.Value;
     46      set {
     47        Item.Value = value;
     48        OnPropertyChange(this, nameof(Value));
     49      }
     50    }
     51
     52    public IEnumerable<string> Range {
     53      get => Item.ConcreteRestrictedItems;
     54      set {
     55        Item.ConcreteRestrictedItems = value;
     56        OnPropertyChange(this, nameof(Range));
     57      }
     58    }
    4059  }
    4160}
Note: See TracChangeset for help on using the changeset viewer.