private void NewTitle(string newTitle) { CurrentSong = newTitle; List <RequestGridItem> toDelete = new List <RequestGridItem>(); foreach (var song in _requests) { if (newTitle.Contains(song.Song)) { toDelete.Add(song); break; } } if (toDelete.Count == 0) { return; } foreach (var song in toDelete) { _requests.Remove(song); } RequestGrid.RefreshDataSource(); UpdateRequestFile(); }
public void AddRequest(RequestGridItem item) { _requests.Add(item); RequestGrid.RefreshDataSource(); UpdateRequestFile(); }