private void MovePlayListItemUp() { if (playlistPlayer.CurrentPlaylistType == PlayListType.PLAYLIST_NONE) { playlistPlayer.CurrentPlaylistType = PlayListType.PLAYLIST_TVSERIES; } if (playlistPlayer.CurrentPlaylistType != PlayListType.PLAYLIST_TVSERIES || m_Facade.CurrentLayout != GUIFacadeControl.Layout.Playlist || m_Facade.PlayListLayout == null) { return; } int iItem = m_Facade.SelectedListItemIndex; // Prevent moving backwards past the top item in the list PlayList playList = playlistPlayer.GetPlaylist(PlayListType.PLAYLIST_TVSERIES); playList.MovePlayListItemUp(iItem); int selectedIndex = m_Facade.MoveItemUp(iItem, true); if (iItem == playlistPlayer.CurrentItem) { playlistPlayer.CurrentItem = selectedIndex; } m_Facade.SelectedListItemIndex = selectedIndex; UpdateButtonStates(); }