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 |
|
---|
11 | protected override double MinTypeValue => double.MinValue;
|
---|
12 |
|
---|
13 | protected override double MaxTypeValue => double.MaxValue;
|
---|
14 |
|
---|
15 | public override UserControl Control =>
|
---|
16 | new JsonItemRangeControl(this);
|
---|
17 | }
|
---|
18 |
|
---|
19 | public class DoubleArrayValueVM : ArrayValueVM<double, DoubleArrayJsonItem> {
|
---|
20 |
|
---|
21 | protected override double MinTypeValue => double.MinValue;
|
---|
22 |
|
---|
23 | protected override double MaxTypeValue => double.MaxValue;
|
---|
24 |
|
---|
25 | public override UserControl Control =>
|
---|
26 | new JsonItemDoubleArrayValueControl(this);
|
---|
27 |
|
---|
28 | public override double[] Value {
|
---|
29 | get => Item.Value;
|
---|
30 | set {
|
---|
31 | Item.Value = value;
|
---|
32 | OnPropertyChange(this, nameof(Value));
|
---|
33 | }
|
---|
34 | }
|
---|
35 | }
|
---|
36 |
|
---|
37 | public class DoubleMatrixValueVM : MatrixValueVM<double, DoubleMatrixJsonItem> {
|
---|
38 | public override UserControl Control =>
|
---|
39 | new JsonItemDoubleMatrixValueControl(this);
|
---|
40 |
|
---|
41 | public override double[][] Value {
|
---|
42 | get => Item.Value;
|
---|
43 | set {
|
---|
44 | Item.Value = value;
|
---|
45 | OnPropertyChange(this, nameof(Value));
|
---|
46 | }
|
---|
47 | }
|
---|
48 |
|
---|
49 | protected override double MinTypeValue => double.MinValue;
|
---|
50 |
|
---|
51 | protected override double MaxTypeValue => double.MaxValue;
|
---|
52 | }
|
---|
53 |
|
---|
54 | public class DoubleValueVM : SingleValueVM<double, DoubleJsonItem> {
|
---|
55 |
|
---|
56 | protected override double MinTypeValue => double.MinValue;
|
---|
57 | protected override double MaxTypeValue => double.MaxValue;
|
---|
58 |
|
---|
59 | public override UserControl Control =>
|
---|
60 | new JsonItemDoubleValueControl(this);
|
---|
61 | }
|
---|
62 | }
|
---|