private void PopulateBio(AuthorInfos infos, string imageLink) { ContentBio.Text = infos.bio; LifeTime.Text = infos.birth + " - " + infos.death; Job.Text = infos.job; MainQuote.Text = infos.quote; AuthorImage.UriSource = new Uri(imageLink); }
private async void GetPageData(string name, string url) { ShowAuthorBioLoadingIndicator(); PopulateHeader(name); AuthorInfos infos = await DAuthorController.LoadData(url); BindAuthorDataContext(infos); HideAuthorBioLoadingIndicator(); }
private async void PopulateDetailView(string url, string imageLink) { if (imageLink.Length < 1) { imageLink = "ms-appx:///Assets/Icons/gray.png"; } ShowAuthorBioLoadingIndicator(); AuthorInfos infos = await DAuthorController.LoadData(url); HideAuthorBioLoadingIndicator(); if (infos != null) { PopulateBio(infos, imageLink); ShowBio(); } else { ShowNoBioView(); } }
private void BindAuthorDataContext(AuthorInfos authorInfos) { AuthorInfos.DataContext = authorInfos; }