Free cookie consent management tool by TermsFeed Policy Generator

source: branches/3026_IntegrationIntoSymSpace/HeuristicLab.JsonInterface/Models/ArrayJsonItem.cs @ 17519

Last change on this file since 17519 was 17519, checked in by dpiringe, 4 years ago

#3026:

  • added error output for failed runner initialization
  • reorganised some final view models
  • TargetedJsonItemType (in JsonItemVMBase) now automatically returns the type of the defined JsonItem
  • code cleanup
  • refactored RegressionProblemDataConverter
  • added lots of comments
  • added new view for StringArrayJsonItem
  • added new UI component for concrete restricted items and used it in JsonItemConcreteItemArrayControl and JsonItemValidValuesControl
File size: 410 bytes
Line 
1using Newtonsoft.Json.Linq;
2
3namespace HeuristicLab.JsonInterface {
4  public abstract class ArrayJsonItem<T> : ValueJsonItem<T[]>, IArrayJsonItem {
5    public virtual bool Resizable { get; set; }
6    public override void SetJObject(JObject jObject) {
7      base.SetJObject(jObject);
8      Resizable = (jObject[nameof(IArrayJsonItem.Resizable)]?.ToObject<bool>()).GetValueOrDefault();
9    }
10  }
11}
Note: See TracBrowser for help on using the repository browser.