示例#1
0
        private async void ContentDialog_PrimaryButtonClick(ContentDialog sender, ContentDialogButtonClickEventArgs args)
        {
            if (ResultView.SelectedItem == null)
            {
                args.Cancel = true;
                return;
            }
            var data = ResultView.SelectedItem as Episodes;

            ReturnDanmakus?.Invoke(null, await TanTanPlay.GetDanmakus(data.EpisodeId));
        }
示例#2
0
        private async void ContentDialog_PrimaryButtonClick(ContentDialog sender, ContentDialogButtonClickEventArgs args)
        {
            if (list_Items.SelectedItem == null)
            {
                args.Cancel = true;
                return;
            }
            var data = list_Items.SelectedItem as Model.episodes;

            ReturnDanmakus(null, await tantan.GetDanmakus(data.episodeId));
        }