예제 #1
0
        private void OnRemovePlayList(MediaInfo mediaInfo)
        {
            for (int i = PlaylistSource.Count - 1; i >= 0; i--)
            {
                if (mediaInfo.Path == PlaylistSource[i].Path)
                {
                    PlaylistSource.RemoveAt(i);
                    fileDAO.DeletePlayList(new MediaInfo[] { mediaInfo });
                    break;
                }
            }

            CheckPlaylistCount();
        }