Exemple #1
0
 private async void PostIconButton_OnClick(object sender, RoutedEventArgs e)
 {
     loadingProgressBar.Visibility = Visibility.Visible;
     ItemGridView.Visibility       = Visibility.Visible;
     if (!_postIconEntities.Any())
     {
         _postIconEntities = await _postIconManager.GetPmPostIcons();
     }
     DefaultViewModel["Groups"]    = _postIconEntities;
     loadingProgressBar.Visibility = Visibility.Collapsed;
 }
Exemple #2
0
        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();
            }
        }