private async Task UpdateCommets() { CommentsProgressRing = true; var htmlPage = await HttpRequest.GetRequestOnlinerAsync(NewsUrl); FullPageParser = new ParsingFullNewsPage(htmlPage, NewsUrl); Comments = await FullPageParser.CommentsMainInfo(); CommentsProgressRing = false; await Task.CompletedTask; }
/// <summary> /// Load all news data /// </summary> /// <param name="urlPage"></param> /// <returns></returns> private async Task LoadNewsData(string urlPage) { NewsUrl = urlPage; var htmlPage = await HttpRequest.GetRequestOnlinerAsync(NewsUrl); FullPageParser = new ParsingFullNewsPage(htmlPage, NewsUrl); //news data NewsItemContent = await FullPageParser.NewsMainInfo(); //comments data Comments = await FullPageParser.CommentsMainInfo(); CommentsProgressRing = false; await HttpRequest.ViewNewsSet(FullPageParser.NewsID); }