Free cookie consent management tool by TermsFeed Policy Generator

Changeset 348


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

added public read property in ConstrainedItemList as per ticket #185 (3.0 branch)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/3.0/sources/HeuristicLab.Data/ConstrainedItemList.cs

    r2 r348  
    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.