Exemple #1
0
        private void RemoveInternal(MediaItem item)
        {
            if (SelectedItem == item)
            {
                SelectedItem = Next();
            }

            _items.Remove(item);
            item.Model.IsDeleted = true;
        }
Exemple #2
0
 /// <summary>
 /// Removes the specified item.
 /// </summary>
 /// <param name="item">The item.</param>
 public virtual void Remove(TViewModel item)
 {
     using (BusyStack.GetToken())
         _items.Remove(item);
 }