source: branches/3026_IntegrationIntoSymSpace/HeuristicLab.JsonInterface.OptimizerIntegration/ViewModels/ValueLookupJsonItemVM.cs @ 17843

Last change on this file since 17843 was 17843, checked in by dpiringe, 7 weeks ago

#3026

  • removed property ConvertableType from all converters
  • removed the option to fixate or loosen the path of JsonItems (obsolete)
  • added a abstract formatter SymbolicRegressionSolutionFormatterBase as base formatter for ISymbolicRegressionSolution
  • unified the construction of exporter controls
  • code cleanup
File size: 639 bytes
Line 
1using System;
2using System.Windows.Forms;
3
4namespace HeuristicLab.JsonInterface.OptimizerIntegration {
5  public class ValueLookupJsonItemVM : LookupJsonItemVM, IValueLookupJsonItemVM {
6    public override Type TargetedJsonItemType => typeof(ValueLookupJsonItem);
7    public override UserControl Control => ValueLookupJsonItemControl.Create(this);
8    public IJsonItem JsonItemReference => ((IValueLookupJsonItem)Item).ActualValue;
9
10    public ValueLookupJsonItemVM() {
11      base.SelectedChanged += () => {
12        if (JsonItemReference != null)
13          JsonItemReference.Active = base.Selected;
14      };
15    }
16  }
17}
Note: See TracBrowser for help on using the repository browser.