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

Last change on this file since 17843 was 17843, checked in by dpiringe, 3 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: 689 bytes
Line 
1using System;
2using System.Windows.Forms;
3
4namespace HeuristicLab.JsonInterface.OptimizerIntegration {
5
6  public abstract class ArrayValueVM<T, JsonItemType> : RangedValueBaseVM<T, JsonItemType>, IArrayJsonItemVM
7    where T : IComparable
8    where JsonItemType : class, IArrayJsonItem, IIntervalRestrictedJsonItem<T> {
9
10    public override UserControl Control => CompoundControl.Create(base.Control, ArrayJsonItemControl.Create(this));
11
12    public ArrayValueVM() { }
13   
14    public bool Resizable {
15      get => Item.Resizable;
16      set {
17        Item.Resizable = value;
18        OnPropertyChange(this, nameof(IArrayJsonItemVM.Resizable));
19      }
20    }
21  }
22}
Note: See TracBrowser for help on using the repository browser.