Пример #1
0
 public void Remove(MySelectableListItem element)
 {
     _panel.Children.Remove(element.Element);
     element.__setList(null);
     backMapping.Remove(element.Element);
     if (CurrentlySelected == element)
     {
         CurrentlySelected = null;
         SelectedIndex     = -1;
     }
 }
Пример #2
0
 public void Add(MySelectableListItem element)
 {
     _panel.Children.Add(element.Element);
     element.__setList(this);
     backMapping.Add(element.Element, element);
 }