using System; using System.Collections.Generic; using System.ComponentModel; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; namespace HeuristicLab.JsonInterface.OptimizerIntegration { /* public class StringArrayValueVM : ArrayValueVM { public override Type TargetedJsonItemType => typeof(StringArrayJsonItem); protected override int MinTypeValue => int.MinValue; protected override int MaxTypeValue => int.MaxValue; public override UserControl Control => new JsonItemBaseControl(this, new JsonItemIntArrayValueControl(this)); public override int[] Value { get => Item.Value; set { Item.Value = value; OnPropertyChange(this, nameof(Value)); } } } */ public abstract class ArrayValueVM : RangedValueBaseVM, IArrayJsonItemVM where T : IComparable where JsonItemType : class, IArrayJsonItem, IIntervalRestrictedJsonItem { public ArrayValueVM() { } public abstract T[] Value { get; set; } public bool Resizable { get => Item.Resizable; set { Item.Resizable = value; OnPropertyChange(this, nameof(IArrayJsonItemVM.Resizable)); } } } }