예제 #1
0
        public void EmptyPosition(int songOrder)
        {
            var plSong = PLAYLIST_SONGS.FirstOrDefault(i => i.ORDER == songOrder);

            if (plSong != null)
            {
                ShiftSongDown(plSong);
            }
        }
예제 #2
0
        private void ShiftSongDown(PLAYLIST_SONG plSong)
        {
            var songInTargetPosition = PLAYLIST_SONGS.FirstOrDefault(i => i.ORDER == plSong.ORDER + 1);

            if (songInTargetPosition != null)
            {
                MoveSongDown(songInTargetPosition);
            }
            plSong.ORDER = plSong.ORDER + 1;
        }