Changeset 17417 for branches/3026_IntegrationIntoSymSpace/HeuristicLab.JsonInterface.OptimizerIntegration/Views/JsonItemValueControl.cs
- Timestamp:
- 02/03/20 15:13:35 (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/3026_IntegrationIntoSymSpace/HeuristicLab.JsonInterface.OptimizerIntegration/Views/JsonItemValueControl.cs
r17411 r17417 13 13 14 14 public class JsonItemIntValueControl : JsonItemValueControl { 15 private readonly IntValueVM vm;16 15 17 16 #region Overriden Properties 18 protected override object VM => vm;19 17 protected override string ValuePropertyId => nameof(IntValueVM.Value); 20 18 protected override string MinRangePropertyId => nameof(IntValueVM.MinRange); … … 25 23 26 24 public JsonItemIntValueControl(IntValueVM vm) : base(vm) { 27 this.vm = vm;28 25 Init(); 29 26 } … … 32 29 33 30 public class JsonItemDoubleValueControl : JsonItemValueControl { 34 private readonly DoubleValueVM vm;35 31 36 32 #region Overriden Properties 37 protected override object VM => vm;38 33 protected override string ValuePropertyId => nameof(DoubleValueVM.Value); 39 34 protected override string MinRangePropertyId => nameof(DoubleValueVM.MinRange); … … 44 39 45 40 public JsonItemDoubleValueControl(DoubleValueVM vm) : base(vm) { 46 this.vm = vm;47 41 Init(); 48 42 } … … 57 51 58 52 #region Abstract Properties 59 protected abstract object VM { get; }60 53 protected abstract string ValuePropertyId { get; } 61 54 protected abstract string MinRangePropertyId { get; } … … 72 65 73 66 protected void Init() { 74 TBValue.DataBindings.Add("Text", VM, ValuePropertyId);67 TBValue.DataBindings.Add("Text", base.VM, ValuePropertyId); 75 68 NumericRangeControl.TBMinRange.DataBindings.Add("Text", VM, MinRangePropertyId); 76 69 NumericRangeControl.TBMaxRange.DataBindings.Add("Text", VM, MaxRangePropertyId);
Note: See TracChangeset
for help on using the changeset viewer.