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

Last change on this file since 17843 was 17843, checked in by dpiringe, 2 months 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
RevLine 
[17471]1using System;
[17473]2using System.Windows.Forms;
[17471]3
4namespace HeuristicLab.JsonInterface.OptimizerIntegration {
5  public class ValueLookupJsonItemVM : LookupJsonItemVM, IValueLookupJsonItemVM {
[17473]6    public override Type TargetedJsonItemType => typeof(ValueLookupJsonItem);
[17843]7    public override UserControl Control => ValueLookupJsonItemControl.Create(this);
[17477]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    }
[17471]16  }
17}
Note: See TracBrowser for help on using the repository browser.