Changeset 17477 for branches/3026_IntegrationIntoSymSpace/HeuristicLab.JsonInterface.OptimizerIntegration/ViewModels
- Timestamp:
- 03/17/20 12:33:35 (5 years ago)
- Location:
- branches/3026_IntegrationIntoSymSpace/HeuristicLab.JsonInterface.OptimizerIntegration/ViewModels
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/3026_IntegrationIntoSymSpace/HeuristicLab.JsonInterface.OptimizerIntegration/ViewModels/JsonItemVMBase.cs
r17473 r17477 13 13 { 14 14 IJsonItem IJsonItemVM.Item { 15 get => item;16 set => item = (JsonItemType)value;15 get => Item; 16 set => Item = (JsonItemType)value; 17 17 } 18 18 … … 39 39 if (TreeView != null) 40 40 TreeView.Refresh(); 41 SelectedChanged?.Invoke(); 41 42 OnPropertyChange(this, nameof(Selected)); 42 43 } … … 62 63 public event PropertyChangedEventHandler PropertyChanged; 63 64 public event Action ItemChanged; 65 public event Action SelectedChanged; 64 66 65 67 -
branches/3026_IntegrationIntoSymSpace/HeuristicLab.JsonInterface.OptimizerIntegration/ViewModels/ValueLookupJsonItemVM.cs
r17473 r17477 10 10 public override Type TargetedJsonItemType => typeof(ValueLookupJsonItem); 11 11 public override UserControl Control => new ValueLookupJsonItemControl(this); 12 public IJsonItem JsonItemReference => ((IValueLookupJsonItem)Item).JsonItemReference; 12 public IJsonItem JsonItemReference => ((IValueLookupJsonItem)Item).ActualValue; 13 14 public ValueLookupJsonItemVM() { 15 base.SelectedChanged += () => { 16 if (JsonItemReference != null) 17 JsonItemReference.Active = base.Selected; 18 }; 19 } 13 20 } 14 21 }
Note: See TracChangeset
for help on using the changeset viewer.