Exemple #1
0
 public DocumentCollectionItem Add(DocumentCollectionItem item, bool activated)
 {
     _items.Add(item);
     if (activated)
     {
         SelectedIndex = _items.Count - 1;
     }
     item.OnClose += Remove;
     return(item);
 }
Exemple #2
0
 public void Remove(DocumentCollectionItem item)
 {
     _items.Remove(item);
 }
Exemple #3
0
 public void Add(DocumentCollectionItem item)
 {
     Add(item, true);
 }