Exemple #1
0
        private async Task <List <SessionListModel> > RefreshSessions()
        {
            var cd = new ConferenceData();
            var sessionsListModel = await cd.GetSessionsAsync();

            return(sessionsListModel);
        }
        private async Task <List <SpeakerListModel> > RefreshSpeakers()
        {
            var cd = new ConferenceData();
            var speakerListModel = await cd.GetSpeakersAsync();

            speakerList.EndRefresh();

            return(speakerListModel);
        }
Exemple #3
0
        protected async override void OnAppearing()
        {
            base.OnAppearing();

            if (_conferenceInfo == null)
            {
                var cd = new ConferenceData();
                _conferenceInfo = await cd.GetConferenceInfoAsync();

                Title.Text       = _conferenceInfo.Name;
                Description.Text = _conferenceInfo.Description;

                var geoCoder = await new Geocoder().GetPositionsForAddressAsync(_conferenceInfo.Location);

                Map.MoveToRegion(MapSpan.FromCenterAndRadius(geoCoder.FirstOrDefault(), new Distance(100)));
            }
        }