/// <summary> /// Adds an item to the collection and selects it. /// </summary> /// <param name="item">The object to add.</param> public virtual void AddAndSelect(T item) { ItemsCore.Add(item); SelectedIndex = ItemsCore.Count - 1; }
/// <summary> /// Adds an item to the <see cref="T:System.Collections.Generic.ICollection`1" />. /// </summary> /// <param name="item">The object to add to the <see cref="T:System.Collections.Generic.ICollection`1" />.</param> public virtual void Add(T item) { ItemsCore.Add(item); }