Last change
on this file since 17712 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:
764 bytes
|
Rev | Line | |
---|
[17410] | 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;
|
---|
[17410] | 8 |
|
---|
| 9 | namespace HeuristicLab.JsonInterface.OptimizerIntegration {
|
---|
| 10 |
|
---|
[17473] | 11 | public abstract class RangeVM<T, JsonItemType> : RangedValueBaseVM<T, JsonItemType>
|
---|
| 12 | where T : IComparable
|
---|
| 13 | where JsonItemType : class, IRangedJsonItem<T>
|
---|
| 14 | {
|
---|
[17410] | 15 |
|
---|
| 16 | public T MinValue {
|
---|
[17473] | 17 | get => Item.MinValue;
|
---|
[17410] | 18 | set {
|
---|
[17473] | 19 | Item.MinValue = value;
|
---|
[17410] | 20 | OnPropertyChange(this, nameof(MinValue));
|
---|
| 21 | }
|
---|
| 22 | }
|
---|
| 23 |
|
---|
| 24 | public T MaxValue {
|
---|
[17473] | 25 | get => Item.MaxValue;
|
---|
[17410] | 26 | set {
|
---|
[17473] | 27 | Item.MaxValue = value;
|
---|
[17410] | 28 | OnPropertyChange(this, nameof(MaxValue));
|
---|
| 29 | }
|
---|
| 30 | }
|
---|
| 31 | }
|
---|
| 32 | }
|
---|
Note: See
TracBrowser
for help on using the repository browser.