예제 #1
0
 private async void LoadAssigned()
 {
     AssignedPresentations.ClearValue(ItemsControl.ItemsSourceProperty);
     AssignedPresentations.DisplayMemberPath = "PresentationDesc";
     AssignedPresentations.SelectedValuePath = "PresentationId";
     AssignedPresentations.ItemsSource       = (await core.GetPresentationsByIdAsync(UserCredentials.Conference.ConferenceId)).Where(p => p.SessionId.HasValue && p.SessionId == session.SessionId);
 }
 private async void LoadPresentations()
 {
     PresentationsList.ClearValue(ItemsControl.ItemsSourceProperty);
     PresentationsList.DisplayMemberPath = "Title";
     PresentationsList.SelectedValuePath = "PresentationId";
     PresentationsList.ItemsSource       = (await core.GetPresentationsByIdAsync(UserCredentials.Conference.ConferenceId))
                                           .Where(p => p.SpecialSessionId.HasValue && p.SpecialSessionId.Value == session.SpecialSessionId);
 }
예제 #3
0
 private async void LoadPresentations()
 {
     PresentationsGrid.ClearValue(ItemsControl.ItemsSourceProperty);
     if (SessionsBox.SelectedIndex >= 0)
     {
         if (SpecialCheck.IsChecked.Value)
         {
             PresentationsGrid.ItemsSource = (await presentationCore.GetPresentationsByIdAsync(UserCredentials.Conference.ConferenceId))
                                             .Where(s => s.SpecialSessionId.HasValue &&
                                                    s.SpecialSessionId.Value == ((SpecialSessionDTO)SessionsBox.SelectedItem).SpecialSessionId);
         }
         else
         {
             PresentationsGrid.ItemsSource = (await presentationCore.GetPresentationsByIdAsync(UserCredentials.Conference.ConferenceId))
                                             .Where(s => s.SessionId.HasValue &&
                                                    s.SessionId.Value == ((SessionDTO)SessionsBox.SelectedItem).SessionId);
         }
     }
 }
예제 #4
0
        private async void LoadPresentations()
        {
            PresentationList.ClearValue(ItemsControl.ItemsSourceProperty);
            PresentationList.DisplayMemberPath = "PresentationDesc";
            PresentationList.SelectedValuePath = "PresentationId";
            if (SessionList.SelectedIndex >= 0)
            {
                if (SessionComboBox.SelectedIndex != 0)
                {
                    PresentationList.ItemsSource = (await presentationCore.GetPresentationsByIdAsync(UserCredentials.Conference.ConferenceId))
                                                   .Where(s => s.SpecialSessionId.HasValue &&
                                                          s.SpecialSessionId.Value == (int)SessionList.SelectedValue);
                    var award = await core.GetAwardForSessionAsync(null, (int)SessionList.SelectedValue);

                    if (award != null)
                    {
                        PresentationList.SelectedValue = award.PresentationId;
                    }
                    else
                    {
                        PresentationList.SelectedIndex = -1;
                    }
                }
                else
                {
                    PresentationList.ItemsSource = (await presentationCore.GetPresentationsByIdAsync(UserCredentials.Conference.ConferenceId))
                                                   .Where(s => s.SessionId.HasValue &&
                                                          s.SessionId.Value == (int)SessionList.SelectedValue);
                    var award = await core.GetAwardForSessionAsync((int)SessionList.SelectedValue, null);

                    if (award != null)
                    {
                        PresentationList.SelectedValue = award.PresentationId;
                    }
                    else
                    {
                        PresentationList.SelectedIndex = -1;
                    }
                }
            }
        }