예제 #1
0
    public void CheckChanges()
    {
        if (_currPlayList == uiController.playListController.currPlayList && _currSort == uiController.playListController.currSort)
        {
            return;
        }

        uiController.playListController.SortCurrentPlayList(_currSort);
        uiController.playListController.ChangePLayList(_currPlayList);

        uiController.ClearContentPrefab();
        uiController.TrackListInitialization();
        uiController.RefreshContentPrefab();
    }
예제 #2
0
    public void AddToFavorite()
    {
        currentTrackInfo.IsFavorite = !currentTrackInfo.IsFavorite;

        if (currentTrackInfo.IsFavorite)
        {
            playListController.favoriteTrackList.Add(currentTrackInfo.currentTrack);
        }
        else
        {
            if (playListController.currPlayList == UtilitsAP.PlayListToUse.Favorite && playListController.currentTrackList.Contains(currentTrackInfo.currentTrack))
            {
                playListController.currentTrackList.Remove(currentTrackInfo.currentTrack);
                uiControlller.RefreshContentPrefab();
            }

            playListController.favoriteTrackList.Remove(currentTrackInfo.currentTrack);
        }

        uiControlller.FavoriteStateChanged();
        Hide = false;
        uiControlller.IsActiveHidePanel = false;
    }