Last change
on this file since 17471 was
17471,
checked in by dpiringe, 4 years ago
|
#3026:
- deleted INamedMatrixJsonItem and all corresponding classes/views, because of bad design
- added ILookupJsonItem and IValueLookupJsonItem (incl. all corresponding implementations, VMs, Views)
- added IResultJsonItem
- changed type of property Control from JsonItemBaseControl to UserControl in IJsonItemVM (because the details control now builds up with linked user controls -> allows better construction of dynamic controls)
- added all properties of INamedMatrixJsonItem in IMatrixJsonItem
- refactored a lot of views for better usage (TableLayoutPanel is used a lot now -> for better item positioning)
- property ActualName is now located in ILookupJsonItem instead of IJsonItem
|
File size:
791 bytes
|
Line | |
---|
1 | using System;
|
---|
2 | using System.Collections.Generic;
|
---|
3 | using System.Linq;
|
---|
4 | using System.Text;
|
---|
5 | using System.Threading.Tasks;
|
---|
6 |
|
---|
7 | namespace HeuristicLab.JsonInterface {
|
---|
8 | public class DoubleJsonItem : JsonItem<double> { }
|
---|
9 | public class DoubleArrayJsonItem : ArrayJsonItemBase<double> { }
|
---|
10 | public class DoubleRangeJsonItem : ArrayJsonItemBase<double> {
|
---|
11 | public override bool Resizable { get => false; set { } }
|
---|
12 | }
|
---|
13 |
|
---|
14 | public class DoubleMatrixJsonItem : MatrixJsonItemBase<double> {
|
---|
15 | protected override bool IsInRange() {
|
---|
16 | for (int c = 0; c < Value.Length; ++c) {
|
---|
17 | for (int r = 0; r < Value[c].Length; ++r) {
|
---|
18 | if (Value[c][r] < Range.First() && Range.Last() < Value[c][r])
|
---|
19 | return false;
|
---|
20 | }
|
---|
21 | }
|
---|
22 | return true;
|
---|
23 | }
|
---|
24 | }
|
---|
25 | }
|
---|
Note: See
TracBrowser
for help on using the repository browser.