Free cookie consent management tool by TermsFeed Policy Generator

source: branches/3026_IntegrationIntoSymSpace/HeuristicLab.JsonInterface.OptimizerIntegration/ViewModels/StringValueVM.cs @ 17411

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

#3026:

  • deleted JsonItemVM
  • reduced code duplicates in JsonItemValueControl
  • implemented logic for entering ranges -> automatically sets to min/max value of datatype when checkbox is not checked
File size: 595 bytes
Line 
1using System;
2using System.Collections.Generic;
3using System.Linq;
4using System.Text;
5using System.Threading.Tasks;
6
7namespace HeuristicLab.JsonInterface.OptimizerIntegration {
8  public class StringValueVM : JsonItemVMBase {
9    public override Type JsonItemType => typeof(StringJsonItem);
10    public override JsonItemBaseControl GetControl() =>
11       new JsonItemValidValuesControl(this);
12
13    public string Value {
14      get => base.Item.Value.ToString();
15      set {
16        base.Item.Value = value;
17        OnPropertyChange(this, nameof(Value));
18      }
19    }
20  }
21}
Note: See TracBrowser for help on using the repository browser.