コード例 #1
0
        public async void Loading()
        {
            anime = new AnimeData();
            anime = await OnLoad();

            this.NavigationService.Navigate(new DisplayAnimeAndSentiment(anime));
        }
コード例 #2
0
 /// <summary>
 /// Sets the animeData object to whatever the values were
 /// obtained from MyAnimelist
 /// </summary>
 public void SetAnimeData()
 {
     animeData                  = new AnimeData();
     animeData.animeName        = _animeName;
     animeData.sentimentOfAnime = sentimentOfAnime;
     animeData.animeReviews     = _reviewsOfAnime;
     animeData.picturesOfAnime  = _animePictures;
     animeData.numOfReviews     = _numOfReviews;
     animeData.scoreOfAnime     = _scoreOfAnime;
 }
コード例 #3
0
        public DisplayAnimeAndSentiment(AnimeData anime)
        {
            this.anime = anime;
            InitializeComponent();
            pictureOfAnime.Source = new BitmapImage(new Uri(this.anime.picturesOfAnime.Pictures.First().Large));
            AnimeReviews testReviews = anime.animeReviews;

            animeTitle.Tag           = this.anime.animeName;
            animeScore.Tag           = this.anime.scoreOfAnime + "/10.00";
            displayMessage.Text      = SentenceBuilder.MessageShownToUser(this.anime.numOfReviews, this.anime.sentimentOfAnime);
            borderOfText.BorderBrush = SentenceBuilder.colourAssociatedWithSentiment;
        }