Beispiel #1
0
 private async void LoadArticle(MalNewsUnitModel data)
 {
     LoadingVisibility      = true;
     ArticleIndexVisibility = false;
     ViewModelLocator.GeneralMain.CurrentStatus = data.Title;
     CurrentNews = Articles.IndexOf(data);
     OpenWebView?.Invoke(await new MalArticleQuery(data.Url, data.Title, data.Type).GetArticleHtml(), data);
 }
Beispiel #2
0
 private async void LoadArticle(MalNewsUnitModel data)
 {
     LoadingVisibility      = Visibility.Visible;
     ArticleIndexVisibility = Visibility.Collapsed;
     ViewModelLocator.Main.CurrentStatus = data.Title;
     NavMgr.RegisterBackNav(PageIndex.PageArticles,
                            data.Type == MalNewsType.Article
             ? MalArticlesPageNavigationArgs.Articles
             : MalArticlesPageNavigationArgs.News);
     OpenWebView?.Invoke(await new MalArticleQuery(data.Url, data.Title, data.Type).GetArticleHtml(), Articles.IndexOf(data));
 }