Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
02/01/21 14:37:18 (3 years ago)
Author:
dpiringe
Message:

#3026

  • removed the option to set the value for JsonItems via exporter
    • reworked some base controls
    • added new controls for JsonItem specific properties (e.g. ArrayResizable)
    • deleted a lot of obsolet controls
  • removed the Enable checkbox in the detail view of JsonItems
  • exporter now clones the IOptimizer object
  • added a check + message for unsupported exports
  • list of JsonItems now includes unsupported JsonItems (disabled and marked with 'unsupported')
  • refactored the converter type check
    • now every converter has to specify its supported type(s)
File:
1 edited

Legend:

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

    r17519 r17828  
    99namespace HeuristicLab.JsonInterface.OptimizerIntegration {
    1010
    11  
    12 
    13 
    14 
    15   /*
    16   public class StringArrayValueVM : ArrayValueVM<int, IntArrayJsonItem> {
    17     public override Type TargetedJsonItemType => typeof(StringArrayJsonItem);
    18 
    19     protected override int MinTypeValue => int.MinValue;
    20 
    21     protected override int MaxTypeValue => int.MaxValue;
    22 
    23     public override UserControl Control =>
    24       new JsonItemBaseControl(this, new JsonItemIntArrayValueControl(this));
    25 
    26     public override int[] Value {
    27       get => Item.Value;
    28       set {
    29         Item.Value = value;
    30         OnPropertyChange(this, nameof(Value));
    31       }
    32     }
    33   }
    34   */
    35 
    36 
    3711  public abstract class ArrayValueVM<T, JsonItemType> : RangedValueBaseVM<T, JsonItemType>, IArrayJsonItemVM
    3812    where T : IComparable
    3913    where JsonItemType : class, IArrayJsonItem, IIntervalRestrictedJsonItem<T> {
    40    
     14
     15    public override UserControl Control => CompoundControl.Create(base.Control, ArrayJsonItemControl.Create(this));
     16
    4117    public ArrayValueVM() { }
    4218   
Note: See TracChangeset for help on using the changeset viewer.