Exemplo n.º 1
0
        private void UpdatePlaylistForParty(object sender, EventArgs e)
        {
            new Thread(() =>
            {
                getSongsBtn_Click(sender, e);
            }).Start();

            //_collectionOfVotes = new List<WCFService.SongRatingFromPartyTable>();
            //var userVotes = _service.GetAllRatings(_dataStorage.CurrentSelectedPartyId, _dataStorage.UserId).ToList();
            //userVotes.ForEach(vote =>
            //{
            //    WCFService.SongRatingFromPartyTable songRating = new WCFService.SongRatingFromPartyTable
            //    {
            //        partyID = vote.partyID,
            //        songURL = vote.songURL,
            //        voteType = vote.voteType,
            //        userID = vote.userID
            //    };
            //    _collectionOfVotes.Add(songRating);
            //}
            //);
            OverallRatingLbl.Text = @"Overall Rating of this song is: " + _service.GetSongFromPartyPlaylist
                                        (_usersRatingForASong.partyID, _usersRatingForASong.songURL).rating;
        }