Ignore:
Timestamp:
03/17/20 12:33:35 (14 months ago)
Author:
dpiringe
Message:

#3026:

  • refactored JsonTemplateInstantiator -> now returns a InstantiatorResult which contains the optimizer and an IEnumerable of IResultJsonItem
  • code cleanup in JCGenerator
  • relocated the serialization of json items into IJsonItem with method GenerateJObject (virtual base implementation in JsonItem)
    • this allows custom serialization for json items (example: ValueLookupJsonItem)
    • items of interface IIntervalRestrictedJsonItem have a custom implementation of GenerateJObject -> hides Minimum and Maximum if the values are the physically min/max of their type
  • code cleanup in BaseConverter
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/3026_IntegrationIntoSymSpace/HeuristicLab.JsonInterface.OptimizerIntegration/ViewModels/ValueLookupJsonItemVM.cs

    r17473 r17477  
    1010    public override Type TargetedJsonItemType => typeof(ValueLookupJsonItem);
    1111    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    }
    1320  }
    1421}
Note: See TracChangeset for help on using the changeset viewer.