Changeset 1203
- Timestamp:
- 02/05/09 11:06:28 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Data/ConstrainedItemList.cs
r737 r1203 182 182 list.Insert(index, item); 183 183 violatedConstraints = new List<IConstraint>(); 184 if ( !suspendConstraintCheck &&IsValid(out violatedConstraints)) {184 if (suspendConstraintCheck || IsValid(out violatedConstraints)) { 185 185 OnItemAdded(item, index); 186 186 return true; … … 203 203 list.RemoveAt(index); 204 204 violatedConstraints = new List<IConstraint>(); 205 if ( !suspendConstraintCheck &&IsValid(out violatedConstraints)) {205 if (suspendConstraintCheck || IsValid(out violatedConstraints)) { 206 206 OnItemRemoved(item, index); 207 207 return true; … … 232 232 list[index] = item; 233 233 violatedConstraints = new List<IConstraint>(); 234 if ( !suspendConstraintCheck &&IsValid(out violatedConstraints)) {234 if (suspendConstraintCheck || IsValid(out violatedConstraints)) { 235 235 return true; 236 236 } else { … … 250 250 list.Add(item); 251 251 violatedConstraints = new List<IConstraint>(); 252 if ( !suspendConstraintCheck &&IsValid(out violatedConstraints)) {252 if (suspendConstraintCheck || IsValid(out violatedConstraints)) { 253 253 OnItemAdded(item, list.Count - 1); 254 254 return true;
Note: See TracChangeset
for help on using the changeset viewer.