private async void btnOpenFace_Click(object sender, RoutedEventArgs e) { FaceFlyout.ShowAt(sender as Button); if (emoteVM.Packages == null || emoteVM.Packages.Count == 0) { await emoteVM.GetEmote(EmoteBusiness.reply); } }
private async void btnEmoji_Click(object sender, RoutedEventArgs e) { FaceFlyout.ShowAt(sender as Button); if (emoteVM.Packages == null || emoteVM.Packages.Count == 0) { await emoteVM.GetEmote(Api.EmoteBusiness.dynamic); } }
/// <summary> /// 初始化并加载评论 /// </summary> /// <param name="loadCommentInfo"></param> public async void LoadComment(LoadCommentInfo loadCommentInfo) { if (loadCommentInfo.commentSort == commentSort.Hot) { hot.Visibility = Visibility.Visible; _new.Visibility = Visibility.Collapsed; } else { hot.Visibility = Visibility.Collapsed; _new.Visibility = Visibility.Visible; } _loadCommentInfo = loadCommentInfo; _page = 1; await GetComment(); await emoteVM.GetEmote(EmoteBusiness.reply); }