private async void PopulateQuotes() { if (_isQuotesLoaded) { return; } if (DAuthorController.QuotesLoaded() && DAuthorController.isSameRequest()) { BindCollectionToView(); return; } if (DAuthorController.HasQuotes()) { ShowQuotesLoadingIndicator(); bool result = await DAuthorController.FetchQuotes(); HideQuotesLoadingIndicator(); if (result) { BindCollectionToView(); } else { ShowNoQuotesView(); } } }
private async void GetPageData(string name, string url) { ShowAuthorBioLoadingIndicator(); PopulateHeader(name); AuthorInfos infos = await DAuthorController.LoadData(url); BindAuthorDataContext(infos); HideAuthorBioLoadingIndicator(); }
private async void PopulateQuotes() { if (_isQuotesLoaded) { return; } if (DAuthorController.QuotesLoaded() && DAuthorController.isSameRequest()) { BindCollectionToView(); return; } if (DAuthorController.HasQuotes()) { bool result = await DAuthorController.FetchQuotes(); if (result) { BindCollectionToView(); } } }
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(); } }