Last change
on this file since 17843 was
17843,
checked in by dpiringe, 3 years 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:
1.2 KB
|
Line | |
---|
1 | using System;
|
---|
2 | using System.Collections.Generic;
|
---|
3 | using System.Windows.Forms;
|
---|
4 |
|
---|
5 | namespace HeuristicLab.JsonInterface.OptimizerIntegration {
|
---|
6 |
|
---|
7 |
|
---|
8 | public abstract class MatrixValueVM<T, JsonItemType> : RangedValueBaseVM<T, JsonItemType>, IMatrixJsonItemVM
|
---|
9 | where T : IComparable
|
---|
10 | where JsonItemType : class, IMatrixJsonItem, IIntervalRestrictedJsonItem<T> {
|
---|
11 |
|
---|
12 | public override UserControl Control => CompoundControl.Create(base.Control, MatrixJsonItemControl.Create(this));
|
---|
13 |
|
---|
14 | public bool RowsResizable {
|
---|
15 | get => Item.RowsResizable;
|
---|
16 | set {
|
---|
17 | Item.RowsResizable = value;
|
---|
18 | OnPropertyChange(this, nameof(RowsResizable));
|
---|
19 | }
|
---|
20 | }
|
---|
21 |
|
---|
22 | public bool ColumnsResizable {
|
---|
23 | get => Item.ColumnsResizable;
|
---|
24 | set {
|
---|
25 | Item.ColumnsResizable = value;
|
---|
26 | OnPropertyChange(this, nameof(ColumnsResizable));
|
---|
27 | }
|
---|
28 | }
|
---|
29 |
|
---|
30 | public IEnumerable<string> RowNames {
|
---|
31 | get => Item.RowNames;
|
---|
32 | set {
|
---|
33 | Item.RowNames = value;
|
---|
34 | OnPropertyChange(this, nameof(RowNames));
|
---|
35 | }
|
---|
36 | }
|
---|
37 | public IEnumerable<string> ColumnNames {
|
---|
38 | get => Item.ColumnNames;
|
---|
39 | set {
|
---|
40 | Item.ColumnNames = value;
|
---|
41 | OnPropertyChange(this, nameof(ColumnNames));
|
---|
42 | }
|
---|
43 | }
|
---|
44 | }
|
---|
45 | }
|
---|
Note: See
TracBrowser
for help on using the repository browser.