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 BoolValueVM : JsonItemVMBase { public bool Value { get => Item.Value; set { Item.Value = value; OnPropertyChange(this, nameof(Value)); } } public override UserControl Control => null; } public abstract class SingleValueVM : RangedValueBaseVM where T : IComparable where JsonItemType : class, IIntervalRestrictedJsonItem, IValueJsonItem { public T Value { get => Item.Value; set { Item.Value = value; OnPropertyChange(this, nameof(Value)); } } } }