コード例 #1
0
        /// <summary>
        /// 播放列表双击
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private async void ListBox_DoubleTapped(object sender, DoubleTappedRoutedEventArgs e)
        {
            ListBox listBox            = (ListBox)sender;
            PlayingSongBaseObject song = listBox.SelectedItem as PlayingSongBaseObject;

            if (PlayingService.IsPlayingSong)
            {
                await PlayingService.ChangePlayingSong(song.Id);
            }
            else
            {
                await PlayingService.ChangePlayingRadio(song.Id);
            }
        }
コード例 #2
0
ファイル: RadioDetail.xaml.cs プロジェクト: qedsd/MyNCMusic
 private async void ListBox_RadioDetail_DoubleTapped(object sender, DoubleTappedRoutedEventArgs e)
 {
     await PlayingService.ChangePlayingRadio((((ListBox)sender).SelectedItem as RadioSongItem).MainSong.Id, radioSongItems);
 }