Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
04/12/19 07:48:00 (6 years ago)
Author:
chaider
Message:

#2971

  • Added Expression change event
  • Added errorProvider Validation
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2971_named_intervals/HeuristicLab.Problems.DataAnalysis/3.4/Implementation/Parser/IntervalConstraint.cs

    r16774 r16776  
    1212  [Item("Interval Constraint", "Constraint on intervals.")]
    1313  public class IntervalConstraint : NamedItem {
    14     public string Expression { get; set; }
     14    private string expression;
     15    public string Expression {
     16      get => expression;
     17      set {
     18        if (value != expression) {
     19          expression = value;
     20        }
     21      }
     22    }
    1523    public string Definition { get; set; }
    1624    public Interval Interval { get; set; }
    17     public bool InclusiveLowerBound { get; set; }
     25    private bool inclusiveLowerBound;
     26
     27    public bool InclusiveLowerBound {
     28      get => inclusiveLowerBound;
     29      set {
     30        if (value != inclusiveLowerBound) {
     31          inclusiveLowerBound = value;
     32          OnChanged(EventArgs.Empty);
     33        }
     34      }
     35    }
    1836    public bool InclusiveUpperBound { get; set; }
    1937    public bool IsDerivation { get; set; }
Note: See TracChangeset for help on using the changeset viewer.