/// <summary> /// Determines whether this instance can play the specified item. /// </summary> /// <param name="item">The item.</param> /// <returns> /// <c>true</c> if this instance can play the specified item; otherwise, <c>false</c>. /// </returns> private bool CanPlay(MediaItem item) { return(Player.CanPlay(item)); }
/// <summary> /// Removes the specified item. /// </summary> /// <param name="item">The item.</param> public void Remove(MediaItem item) { using (BusyStack.GetToken()) Playlist.Remove(item); }
private bool CanRemove(MediaItem item) { using (BusyStack.GetToken()) return(Playlist.CanRemove(item)); }
public void Save(MediaItem viewModel) { using (_busyStack.GetToken()) _mediaItemRepository.Save(viewModel.Model); }