Exemplo n.º 1
0
        private async void LoadSpeakerData()
        {
            try
            {
                if (SelectedSession.SpeakerId != null)
                {
                    this.CurrentSpeaker = await SpeakersDefinition.LoadSpeaker(SelectedSession.SpeakerId.ToString());

                    this.IsSpeakerPicture = true;
                }
                else
                {
                    this.IsSpeakerPicture = false;
                }

                if (SelectedSession.SponsorId != null)
                {
                    this.CurrentSponsor = await SponsorDefinition.LoadSponsor(SelectedSession.SponsorId.ToString());

                    this.IsSponsorPicture = true;
                }
                else
                {
                    IsSponsorPicture = false;
                }

                IsBusy = false;
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }
Exemplo n.º 2
0
        private async void LoadSponsorData()
        {
            try
            {
                SponsorsGroupedCollection = await SponsorDefinition.LoadSponsors();

                IsBusy = false;
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }