Example #1
0
 private async void LoadData()
 {
     ArticlesList.ClearValue(ItemsControl.ItemsSourceProperty);
     ArticlesList.DisplayMemberPath = "Topic";
     ArticlesList.SelectedValuePath = "ArticleId";
     ArticlesList.ItemsSource       = (await core.GetArticlesAsync(UserCredentials.Conference.ConferenceId))
                                      .Where(article => article.Status == "submitted");
 }
Example #2
0
 private async void LoadArticles()
 {
     ArticlesList.ClearValue(ItemsControl.ItemsSourceProperty);
     if (SessionsBox.SelectedIndex >= 0 && SpecialCheck.IsChecked.Value)
     {
         ArticlesList.DisplayMemberPath = "Topic";
         ArticlesList.SelectedValuePath = "ArticleId";
         ArticlesList.ItemsSource       = (await articleCore.GetArticlesAsync(UserCredentials.Conference.ConferenceId))
                                          .Where(s => s.SpecialSessionId.HasValue &&
                                                 s.SpecialSessionId.Value == ((SpecialSessionDTO)SessionsBox.SelectedItem).SpecialSessionId);
     }
 }