Changeset 3575
- Timestamp:
- 05/01/10 02:17:33 (15 years ago)
- Location:
- trunk/sources/HeuristicLab.Core/3.3/Collections
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Core/3.3/Collections/CheckedItemCollection.cs
r3567 r3575 56 56 foreach (var item in collection) 57 57 if (!checkedState.ContainsKey(item)) 58 checkedState.Add(item, false);58 checkedState.Add(item, true); 59 59 } 60 60 [StorableConstructor] … … 83 83 foreach (var item in items) 84 84 if (!checkedState.ContainsKey(item)) 85 checkedState.Add(item, false);85 checkedState.Add(item, true); 86 86 base.OnCollectionReset(items, oldItems); 87 87 } … … 90 90 foreach (var item in items) 91 91 if (!checkedState.ContainsKey(item)) 92 checkedState.Add(item, false);92 checkedState.Add(item, true); 93 93 base.OnItemsAdded(items); 94 94 } -
trunk/sources/HeuristicLab.Core/3.3/Collections/CheckedItemList.cs
r3567 r3575 59 59 foreach (var item in collection) { 60 60 if (!checkedState.ContainsKey(item)) 61 checkedState.Add(item, false);61 checkedState.Add(item, true); 62 62 } 63 63 } … … 101 101 foreach (var indexedItem in items) { 102 102 if (!checkedState.ContainsKey(indexedItem.Value)) 103 checkedState.Add(indexedItem.Value, false);103 checkedState.Add(indexedItem.Value, true); 104 104 } 105 105 base.OnCollectionReset(items, oldItems); … … 109 109 foreach (var indexedItem in items) 110 110 if (!checkedState.ContainsKey(indexedItem.Value)) 111 checkedState.Add(indexedItem.Value, false);111 checkedState.Add(indexedItem.Value, true); 112 112 base.OnItemsAdded(items); 113 113 } … … 124 124 foreach (var indexedItem in items) 125 125 if (!checkedState.ContainsKey(indexedItem.Value)) 126 checkedState.Add(indexedItem.Value, false);126 checkedState.Add(indexedItem.Value, true); 127 127 base.OnItemsReplaced(items, oldItems); 128 128 }
Note: See TracChangeset
for help on using the changeset viewer.