Last change
on this file since 17530 was
17519,
checked in by dpiringe, 5 years ago
|
#3026:
- added error output for failed runner initialization
- reorganised some final view models
- TargetedJsonItemType (in JsonItemVMBase) now automatically returns the type of the defined JsonItem
- code cleanup
- refactored RegressionProblemDataConverter
- added lots of comments
- added new view for StringArrayJsonItem
- added new UI component for concrete restricted items and used it in JsonItemConcreteItemArrayControl and JsonItemValidValuesControl
|
File size:
1.3 KB
|
Rev | Line | |
---|
[17431] | 1 | using System;
|
---|
| 2 | using System.Collections.Generic;
|
---|
| 3 | using System.ComponentModel;
|
---|
| 4 | using System.Linq;
|
---|
| 5 | using System.Text;
|
---|
| 6 | using System.Threading.Tasks;
|
---|
[17471] | 7 | using System.Windows.Forms;
|
---|
[17431] | 8 |
|
---|
| 9 | namespace HeuristicLab.JsonInterface.OptimizerIntegration {
|
---|
| 10 |
|
---|
| 11 |
|
---|
[17473] | 12 | public abstract class MatrixValueVM<T, JsonItemType> : RangedValueBaseVM<T, JsonItemType>, IMatrixJsonItemVM
|
---|
| 13 | where T : IComparable
|
---|
| 14 | where JsonItemType : class, IMatrixJsonItem, IIntervalRestrictedJsonItem<T> {
|
---|
[17446] | 15 | public abstract T[][] Value { get; set; }
|
---|
| 16 | public bool RowsResizable {
|
---|
[17484] | 17 | get => Item.RowsResizable;
|
---|
[17446] | 18 | set {
|
---|
[17484] | 19 | Item.RowsResizable = value;
|
---|
[17446] | 20 | OnPropertyChange(this, nameof(RowsResizable));
|
---|
| 21 | }
|
---|
| 22 | }
|
---|
[17431] | 23 |
|
---|
[17446] | 24 | public bool ColumnsResizable {
|
---|
[17484] | 25 | get => Item.ColumnsResizable;
|
---|
[17446] | 26 | set {
|
---|
[17484] | 27 | Item.ColumnsResizable = value;
|
---|
[17446] | 28 | OnPropertyChange(this, nameof(ColumnsResizable));
|
---|
| 29 | }
|
---|
| 30 | }
|
---|
| 31 |
|
---|
[17471] | 32 | public IEnumerable<string> RowNames {
|
---|
[17484] | 33 | get => Item.RowNames;
|
---|
[17471] | 34 | set {
|
---|
[17484] | 35 | Item.RowNames = value;
|
---|
[17471] | 36 | OnPropertyChange(this, nameof(RowNames));
|
---|
| 37 | }
|
---|
| 38 | }
|
---|
| 39 | public IEnumerable<string> ColumnNames {
|
---|
[17484] | 40 | get => Item.ColumnNames;
|
---|
[17471] | 41 | set {
|
---|
[17484] | 42 | Item.ColumnNames = value;
|
---|
[17471] | 43 | OnPropertyChange(this, nameof(ColumnNames));
|
---|
| 44 | }
|
---|
| 45 | }
|
---|
[17431] | 46 | }
|
---|
| 47 | }
|
---|
Note: See
TracBrowser
for help on using the repository browser.