예제 #1
0
        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();
        }
예제 #2
0
 public void AddRequest(RequestGridItem item)
 {
     _requests.Add(item);
     RequestGrid.RefreshDataSource();
     UpdateRequestFile();
 }