Free cookie consent management tool by TermsFeed Policy Generator

Changeset 347 for trunk


Ignore:
Timestamp:
06/29/08 01:44:32 (16 years ago)
Author:
abeham
Message:

added public read property in ConstrainedItemList as per ticket #185

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Data/ConstrainedItemList.cs

    r2 r347  
    3131    private List<IItem> list;
    3232    private bool suspendConstraintCheck;
     33
     34    public bool ConstraintCheckSuspended {
     35      get { return suspendConstraintCheck; }
     36    }
    3337
    3438    public ConstrainedItemList()
     
    100104
    101105    public bool EndCombinedOperation(out ICollection<IConstraint> violatedConstraints) {
    102       suspendConstraintCheck = false;
    103       return IsValid(out violatedConstraints);
     106      if (IsValid(out violatedConstraints))
     107        suspendConstraintCheck = false;
     108      else
     109        suspendConstraintCheck = true;
     110
     111      return !suspendConstraintCheck;
    104112    }
    105113
Note: See TracChangeset for help on using the changeset viewer.