Free cookie consent management tool by TermsFeed Policy Generator

source: branches/3026_IntegrationIntoSymSpace/HeuristicLab.JsonInterface.OptimizerIntegration/ViewModels/IntVMs.cs @ 17828

Last change on this file since 17828 was 17828, checked in by dpiringe, 3 years ago

#3026

  • removed the option to set the value for JsonItems via exporter
    • reworked some base controls
    • added new controls for JsonItem specific properties (e.g. ArrayResizable)
    • deleted a lot of obsolet controls
  • removed the Enable checkbox in the detail view of JsonItems
  • exporter now clones the IOptimizer object
  • added a check + message for unsupported exports
  • list of JsonItems now includes unsupported JsonItems (disabled and marked with 'unsupported')
  • refactored the converter type check
    • now every converter has to specify its supported type(s)
File size: 954 bytes
Line 
1using System;
2using System.Collections.Generic;
3using System.Linq;
4using System.Text;
5using System.Threading.Tasks;
6using System.Windows.Forms;
7
8namespace HeuristicLab.JsonInterface.OptimizerIntegration {
9  public class IntArrayValueVM : ArrayValueVM<int, IntArrayJsonItem> {
10    protected override int MinTypeValue => int.MinValue;
11    protected override int MaxTypeValue => int.MaxValue;
12
13    public override int[] Value {
14      get => Item.Value;
15      set {
16        Item.Value = value;
17        OnPropertyChange(this, nameof(Value));
18      }
19    }
20  }
21
22  public class IntRangeVM : RangeVM<int, IntRangeJsonItem> {
23    protected override int MinTypeValue => int.MinValue;
24    protected override int MaxTypeValue => int.MaxValue;
25  }
26
27  public class IntValueVM : SingleValueVM<int, IntJsonItem> {
28    protected override int MinTypeValue => int.MinValue;
29    protected override int MaxTypeValue => int.MaxValue;
30  }
31
32}
Note: See TracBrowser for help on using the repository browser.