Пример #1
0
        private void ListBox_CreatedPlaylist_Tapped(object sender, TappedRoutedEventArgs e)
        {
            var playlist = ((ListBox)sender).SelectedItem as PlaylistItem;

            if (PlaylistService.AddToPlaylist(playlist.id, _songsItem.Id))
            {
                NotifyPopup notifyPopup = new NotifyPopup("已添加到歌单", "\xF78C", Colors.MediumSeaGreen);
                notifyPopup.Show();
                playlist.coverImgUrl = _albumRoot.album.picUrl;
                ContentDialog_CreatedPlaylist.Hide();
            }
            else
            {
                NotifyPopup notifyPopup = new NotifyPopup("添加失败", "\xF78A");
                notifyPopup.Show();
            }
        }
Пример #2
0
 private void Button_AddNewPlaylist_Click(object sender, RoutedEventArgs e)
 {
     ContentDialog_CreatedPlaylist.Closed += ContentDialog_CreatedPlaylist_Closed;
     ContentDialog_CreatedPlaylist.Hide();
 }
Пример #3
0
 private void Button_CloseAddToPlaylistDialog_Click(object sender, RoutedEventArgs e)
 {
     ContentDialog_CreatedPlaylist.Hide();
 }