/// <summary> /// Remove a given track /// </summary> /// <param name="_track"></param> public void RemoveTrack(Track _track) { if (CanEdit) { ListTrack.Remove(_track); } }
/// <summary> /// Delete a track in an album. /// </summary> /// <param name="track"></param> public void EraseTrack(string track) { foreach (var thetrack in ListTrack) { if (thetrack.Title.Equals(track)) { ListTrack.Remove(thetrack); return; } } }
/// <summary> /// Remove a given track /// </summary> /// <param name="_track"></param> public void RemoveTrack(Track _track) { ListTrack.Remove(_track); }