Esempio n. 1
0
 protected CheckedItemList(CheckedItemList <T> original, Cloner cloner)
     : base(original, cloner)
 {
     list         = new List <T>(original.Select(x => (T)cloner.Clone(x)));
     checkedState = new Dictionary <T, bool>();
     foreach (var pair in original.checkedState)
     {
         checkedState.Add(cloner.Clone(pair.Key), pair.Value);
     }
 }
 public void SetItemCheckedState(T item, bool checkedState)
 {
     CheckedItemList.SetItemCheckedState(item, checkedState);
 }
 public bool ItemChecked(T item)
 {
     return(CheckedItemList.ItemChecked(item));
 }
 public void SetItemCheckedState(IEnumerable <T> items, bool checkedState)
 {
     CheckedItemList.SetItemCheckedState(items, checkedState);
 }
 public bool ItemChecked(int itemIndex)
 {
     return(CheckedItemList.ItemChecked(itemIndex));
 }
 public void SetItemCheckedState(IEnumerable <int> itemIndices, bool checkedState)
 {
     CheckedItemList.SetItemCheckedState(itemIndices, checkedState);
 }
 public void SetItemCheckedState(int itemIndex, bool checkedState)
 {
     CheckedItemList.SetItemCheckedState(itemIndex, checkedState);
 }