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)); }
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)); }