예제 #1
0
        public async void SelectTheChannle(object sender, ItemClickEventArgs e)
        {
            var         channel = e.ClickedItem as Channel;
            List <Song> songs   = await DoubanFMService.GetSongsFromChannel(channel);

            ViewModelLocator.Instance.Main.PlayerSession.SetPlaylist(songs, songs[0]);
        }
        private async void AssociatedObject_PointerReleased(object sender, Windows.UI.Xaml.Input.PointerRoutedEventArgs e)
        {
            Channel channel = AssociatedObject.DataContext as Channel;

            if (channel != null)
            {
                List <Song> songs = await DoubanFMService.GetSongsFromChannel(channel);

                ViewModelLocator.Instance.Main.PlayerSession.SetPlaylist(songs, songs[0]);
            }
        }