Last change
on this file 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:
639 bytes
|
Rev | Line | |
---|
[17471] | 1 | using System;
|
---|
[17473] | 2 | using System.Windows.Forms;
|
---|
[17471] | 3 |
|
---|
| 4 | namespace HeuristicLab.JsonInterface.OptimizerIntegration {
|
---|
| 5 | public class ValueLookupJsonItemVM : LookupJsonItemVM, IValueLookupJsonItemVM {
|
---|
[17473] | 6 | public override Type TargetedJsonItemType => typeof(ValueLookupJsonItem);
|
---|
[17843] | 7 | public override UserControl Control => ValueLookupJsonItemControl.Create(this);
|
---|
[17477] | 8 | public IJsonItem JsonItemReference => ((IValueLookupJsonItem)Item).ActualValue;
|
---|
| 9 |
|
---|
| 10 | public ValueLookupJsonItemVM() {
|
---|
| 11 | base.SelectedChanged += () => {
|
---|
| 12 | if (JsonItemReference != null)
|
---|
| 13 | JsonItemReference.Active = base.Selected;
|
---|
| 14 | };
|
---|
| 15 | }
|
---|
[17471] | 16 | }
|
---|
| 17 | }
|
---|
Note: See
TracBrowser
for help on using the repository browser.