public async void Loading() { anime = new AnimeData(); anime = await OnLoad(); this.NavigationService.Navigate(new DisplayAnimeAndSentiment(anime)); }
/// <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; }
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; }