コード例 #1
0
 protected override void OnNavigatedTo(NavigationEventArgs e)
 {
     Models.PostPageArguments args = (Models.PostPageArguments)e.Parameter;
     post           = args.item;
     authController = args.authController;
     if (authController.accesToken == null)
     {
         CommentButton.IsEnabled = false;
     }
     TextBlockTitle.Text   = post.title;
     TextBlockContent.Text = post.selftext;
     if (!post.url.Equals(""))
     {
         TextBlockContent.Text += "\n Link: \n" + post.url;
     }
     loadComments();
 }
コード例 #2
0
 public void addSubReddit(Models.SubRedditData sub)
 {
     subRedditsObs.Add(sub);
 }