Changeset 3575


Ignore:
Timestamp:
05/01/10 02:17:33 (12 years ago)
Author:
swagner
Message:

Changed default checked state of items in CheckedItemCollection and CheckedItemList from false to true (#992)

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  
    5656      foreach (var item in collection)
    5757        if (!checkedState.ContainsKey(item))
    58           checkedState.Add(item, false);
     58          checkedState.Add(item, true);
    5959    }
    6060    [StorableConstructor]
     
    8383      foreach (var item in items)
    8484        if (!checkedState.ContainsKey(item))
    85           checkedState.Add(item, false);
     85          checkedState.Add(item, true);
    8686      base.OnCollectionReset(items, oldItems);
    8787    }
     
    9090      foreach (var item in items)
    9191        if (!checkedState.ContainsKey(item))
    92           checkedState.Add(item, false);
     92          checkedState.Add(item, true);
    9393      base.OnItemsAdded(items);
    9494    }
  • trunk/sources/HeuristicLab.Core/3.3/Collections/CheckedItemList.cs

    r3567 r3575  
    5959      foreach (var item in collection) {
    6060        if (!checkedState.ContainsKey(item))
    61           checkedState.Add(item, false);
     61          checkedState.Add(item, true);
    6262      }
    6363    }
     
    101101      foreach (var indexedItem in items) {
    102102        if (!checkedState.ContainsKey(indexedItem.Value))
    103           checkedState.Add(indexedItem.Value, false);
     103          checkedState.Add(indexedItem.Value, true);
    104104      }
    105105      base.OnCollectionReset(items, oldItems);
     
    109109      foreach (var indexedItem in items)
    110110        if (!checkedState.ContainsKey(indexedItem.Value))
    111           checkedState.Add(indexedItem.Value, false);
     111          checkedState.Add(indexedItem.Value, true);
    112112      base.OnItemsAdded(items);
    113113    }
     
    124124      foreach (var indexedItem in items)
    125125        if (!checkedState.ContainsKey(indexedItem.Value))
    126           checkedState.Add(indexedItem.Value, false);
     126          checkedState.Add(indexedItem.Value, true);
    127127      base.OnItemsReplaced(items, oldItems);
    128128    }
Note: See TracChangeset for help on using the changeset viewer.