Last change
on this file since 17828 was
17828,
checked in by dpiringe, 3 years ago
|
#3026
- removed the option to set the value for JsonItems via exporter
- reworked some base controls
- added new controls for JsonItem specific properties (e.g. ArrayResizable)
- deleted a lot of obsolet controls
- removed the Enable checkbox in the detail view of JsonItems
- exporter now clones the IOptimizer object
- added a check + message for unsupported exports
- list of JsonItems now includes unsupported JsonItems (disabled and marked with 'unsupported')
- refactored the converter type check
- now every converter has to specify its supported type(s)
|
File size:
870 bytes
|
Rev | Line | |
---|
[17417] | 1 | using System;
|
---|
| 2 | using System.Collections.Generic;
|
---|
[17420] | 3 | using System.ComponentModel;
|
---|
[17417] | 4 | using System.Linq;
|
---|
| 5 | using System.Text;
|
---|
| 6 | using System.Threading.Tasks;
|
---|
[17471] | 7 | using System.Windows.Forms;
|
---|
[17417] | 8 |
|
---|
| 9 | namespace HeuristicLab.JsonInterface.OptimizerIntegration {
|
---|
[17420] | 10 |
|
---|
[17473] | 11 | public abstract class ArrayValueVM<T, JsonItemType> : RangedValueBaseVM<T, JsonItemType>, IArrayJsonItemVM
|
---|
| 12 | where T : IComparable
|
---|
| 13 | where JsonItemType : class, IArrayJsonItem, IIntervalRestrictedJsonItem<T> {
|
---|
[17828] | 14 |
|
---|
| 15 | public override UserControl Control => CompoundControl.Create(base.Control, ArrayJsonItemControl.Create(this));
|
---|
| 16 |
|
---|
[17433] | 17 | public ArrayValueVM() { }
|
---|
[17484] | 18 |
|
---|
[17431] | 19 | public abstract T[] Value { get; set; }
|
---|
[17446] | 20 | public bool Resizable {
|
---|
[17484] | 21 | get => Item.Resizable;
|
---|
[17446] | 22 | set {
|
---|
[17484] | 23 | Item.Resizable = value;
|
---|
[17446] | 24 | OnPropertyChange(this, nameof(IArrayJsonItemVM.Resizable));
|
---|
| 25 | }
|
---|
| 26 | }
|
---|
[17420] | 27 | }
|
---|
[17417] | 28 | }
|
---|
Note: See
TracBrowser
for help on using the repository browser.