Changeset 17412 for branches/3026_IntegrationIntoSymSpace/HeuristicLab.JsonInterface.OptimizerIntegration/ViewModels
- Timestamp:
- 01/28/20 16:37:01 (5 years ago)
- Location:
- branches/3026_IntegrationIntoSymSpace/HeuristicLab.JsonInterface.OptimizerIntegration/ViewModels
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/3026_IntegrationIntoSymSpace/HeuristicLab.JsonInterface.OptimizerIntegration/ViewModels/JsonItemVMBase.cs
r17411 r17412 22 22 23 23 public virtual Type JsonItemType => typeof(JsonItem); 24 25 //protected IJsonItemValueParser Parser { get; set; }26 //child tree27 //private IList<JsonItemVM> nodes = new List<JsonItemVM>();28 29 //public IEnumerable<JsonItemVM> Nodes { get => nodes; }30 //public JsonItemVM Parent { get; private set; }31 32 24 33 25 private bool selected = true; … … 55 47 } 56 48 } 49 57 50 public virtual JsonItemBaseControl GetControl() { 58 51 return new JsonItemBaseControl(this); -
branches/3026_IntegrationIntoSymSpace/HeuristicLab.JsonInterface.OptimizerIntegration/ViewModels/RangeVM.cs
r17411 r17412 21 21 22 22 public T MinValue { 23 get => Cast(((Array) base.Item.Value).GetValue(0));23 get => Cast(((Array)Item.Value).GetValue(0)); 24 24 set { 25 SetValue(value, ((Array) base.Item.Value).GetValue(1));25 SetValue(value, ((Array)Item.Value).GetValue(1)); 26 26 OnPropertyChange(this, nameof(MinValue)); 27 27 } … … 29 29 30 30 public T MaxValue { 31 get => Cast(((Array) base.Item.Value).GetValue(1));31 get => Cast(((Array)Item.Value).GetValue(1)); 32 32 set { 33 SetValue(((Array) base.Item.Value).GetValue(0), value);33 SetValue(((Array)Item.Value).GetValue(0), value); 34 34 OnPropertyChange(this, nameof(MaxValue)); 35 35 } … … 37 37 38 38 public T MinRange { 39 get => Cast( base.Item.Range.First());39 get => Cast(Item.Range.First()); 40 40 set { 41 SetRange(value, base.Item.Range.Last());41 SetRange(value, Item.Range.Last()); 42 42 OnPropertyChange(this, nameof(MinRange)); 43 43 } … … 45 45 46 46 public T MaxRange { 47 get => Cast( base.Item.Range.Last());47 get => Cast(Item.Range.Last()); 48 48 set { 49 SetRange( base.Item.Range.First(), value);49 SetRange(Item.Range.First(), value); 50 50 OnPropertyChange(this, nameof(MaxRange)); 51 51 } … … 55 55 56 56 private void SetValue(object min, object max) => 57 base.Item.Value = new object[] { min, max };57 Item.Value = new object[] { min, max }; 58 58 59 59 private void SetRange(object min, object max) => 60 base.Item.Range = new object[] { min, max };60 Item.Range = new object[] { min, max }; 61 61 } 62 62 } -
branches/3026_IntegrationIntoSymSpace/HeuristicLab.JsonInterface.OptimizerIntegration/ViewModels/SingleValueVM.cs
r17411 r17412 41 41 42 42 public T Value { 43 get => Cast( base.Item.Value);43 get => Cast(Item.Value); 44 44 set { 45 base.Item.Value = value;45 Item.Value = value; 46 46 OnPropertyChange(this, nameof(Value)); 47 47 } … … 49 49 50 50 public T MinRange { 51 get => Cast( base.Item.Range.First());51 get => Cast(Item.Range.First()); 52 52 set { 53 SetRange(value, base.Item.Range.Last());53 SetRange(value, Item.Range.Last()); 54 54 OnPropertyChange(this, nameof(MinRange)); 55 55 } … … 57 57 58 58 public T MaxRange { 59 get => Cast( base.Item.Range.Last());59 get => Cast(Item.Range.Last()); 60 60 set { 61 SetRange( base.Item.Range.First(), value);61 SetRange(Item.Range.First(), value); 62 62 OnPropertyChange(this, nameof(MaxRange)); 63 63 } … … 90 90 private void SetRange(object min, object max) { 91 91 object[] range = new object[] { min, max }; 92 base.Item.Range = range;92 Item.Range = range; 93 93 } 94 94 -
branches/3026_IntegrationIntoSymSpace/HeuristicLab.JsonInterface.OptimizerIntegration/ViewModels/StringValueVM.cs
r17411 r17412 12 12 13 13 public string Value { 14 get => base.Item.Value.ToString();14 get => Item.Value.ToString(); 15 15 set { 16 base.Item.Value = value;16 Item.Value = value; 17 17 OnPropertyChange(this, nameof(Value)); 18 18 }
Note: See TracChangeset
for help on using the changeset viewer.