Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
02/26/20 13:23:49 (5 years ago)
Author:
dpiringe
Message:

#3026:

  • fixed a type conversion bug in RangeVM
  • implemented logic for JsonItemRangeControl
File:
1 edited

Legend:

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

    r17446 r17454  
    3535      get => Cast(((Array)Item.Value).GetValue(0));
    3636      set {
    37         SetValue(value, ((Array)Item.Value).GetValue(1));
     37        SetValue(value, (T)((Array)Item.Value).GetValue(1));
    3838        OnPropertyChange(this, nameof(MinValue));
    3939      }
     
    4343      get => Cast(((Array)Item.Value).GetValue(1));
    4444      set {
    45         SetValue(((Array)Item.Value).GetValue(0), value);
     45        SetValue((T)((Array)Item.Value).GetValue(0), value);
    4646        OnPropertyChange(this, nameof(MaxValue));
    4747      }
    4848    }
    4949
    50     private void SetValue(object min, object max) =>
    51       Item.Value = new object[] { min, max };
     50    private void SetValue(T min, T max) =>
     51      Item.Value = new T[] { min, max };
    5252  }
    5353}
Note: See TracChangeset for help on using the changeset viewer.