Exemplo n.º 1
0
 public void ShowComments(Article article)
 {
     this.navigationService.UriFor<CommentsPageViewModel>()
         .WithParam(c => c.ArticleId, article.Id)
         .WithParam(c => c.ArticleTitle, article.Title)
         .Navigate();
 }
Exemplo n.º 2
0
        public void ShowArticle(Article article)
        {
            this.cacheService.Articles[article.Id] = article;

            if (article.IsText)
            {
                this.navigationService.UriFor<ArticleTextPageViewModel>()
                    .WithParam(v => v.ArticleId, article.Id)
                    .Navigate();
            }
            else
            {
                this.navigationService.UriFor<ArticleWebPageViewModel>()
                    .WithParam(v => v.ArticleId, article.Id)
                    .Navigate();
            }
        }