private async void PostIconButton_OnClick(object sender, RoutedEventArgs e) { loadingProgressBar.Visibility = Visibility.Visible; ItemGridView.Visibility = Visibility.Visible; PreviewLastPostWebView.Visibility = Visibility.Collapsed; if (!_postIconEntities.Any()) { _postIconEntities = await _postIconManager.GetPostIcons(_forumEntity); } DefaultViewModel["Groups"] = _postIconEntities; loadingProgressBar.Visibility = Visibility.Collapsed; }
public async Task Initialize() { ForumEntity = Locator.ViewModels.ThreadListPageVm.ForumEntity; if ((PostIconEntities == null || !PostIconEntities.Any()) && ForumEntity != null) { var test = await _postIconManager.GetPostIcons(ForumEntity); PostIconEntities = test.First().List.ToObservableCollection(); } else { var test = await _postIconManager.GetPmPostIcons(); PostIconEntities = test.First().List.ToObservableCollection(); } }