Last change
on this file since 17842 was
17828,
checked in by dpiringe, 4 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:
1.4 KB
|
Line | |
---|
1 | using System;
|
---|
2 | using System.Collections.Generic;
|
---|
3 | using System.Linq;
|
---|
4 | using System.Text;
|
---|
5 | using System.Threading.Tasks;
|
---|
6 | using System.Windows.Forms;
|
---|
7 |
|
---|
8 | namespace HeuristicLab.JsonInterface.OptimizerIntegration {
|
---|
9 | public class DoubleRangeVM : RangeVM<double, DoubleRangeJsonItem> {
|
---|
10 | protected override double MinTypeValue => double.MinValue;
|
---|
11 | protected override double MaxTypeValue => double.MaxValue;
|
---|
12 | }
|
---|
13 |
|
---|
14 | public class DoubleArrayValueVM : ArrayValueVM<double, DoubleArrayJsonItem> {
|
---|
15 | protected override double MinTypeValue => double.MinValue;
|
---|
16 | protected override double MaxTypeValue => double.MaxValue;
|
---|
17 | public override double[] Value {
|
---|
18 | get => Item.Value;
|
---|
19 | set {
|
---|
20 | Item.Value = value;
|
---|
21 | OnPropertyChange(this, nameof(Value));
|
---|
22 | }
|
---|
23 | }
|
---|
24 | }
|
---|
25 |
|
---|
26 | public class DoubleMatrixValueVM : MatrixValueVM<double, DoubleMatrixJsonItem> {
|
---|
27 | public override double[][] Value {
|
---|
28 | get => Item.Value;
|
---|
29 | set {
|
---|
30 | Item.Value = value;
|
---|
31 | OnPropertyChange(this, nameof(Value));
|
---|
32 | }
|
---|
33 | }
|
---|
34 | protected override double MinTypeValue => double.MinValue;
|
---|
35 | protected override double MaxTypeValue => double.MaxValue;
|
---|
36 | }
|
---|
37 |
|
---|
38 | public class DoubleValueVM : SingleValueVM<double, DoubleJsonItem> {
|
---|
39 | protected override double MinTypeValue => double.MinValue;
|
---|
40 | protected override double MaxTypeValue => double.MaxValue;
|
---|
41 | }
|
---|
42 | }
|
---|
Note: See
TracBrowser
for help on using the repository browser.