Esempio n. 1
0
        public void NavigateToNextEpisode()
        {
            //Increase episode number and load the series id, season number and the new episode to the parameter
            //Cannot make upper boundary while the API should send the number of episodes per season, but it returns 0.
            int episode = Episode.episode_number + 1;

            EpisodeToCheckOut.Add(Series.id);
            EpisodeToCheckOut.Add(Season.season_number);
            EpisodeToCheckOut.Add(episode);
            NavigationService.Navigate(typeof(EpisodePage), EpisodeToCheckOut);
        }
Esempio n. 2
0
        public void NavigateToPreviousEpisode()
        {
            //Decrease episode number and load the series id, season number and the new episode to the parameter
            int episode = Episode.episode_number;

            if (Episode.episode_number > 1)
            {
                episode -= 1;
            }
            EpisodeToCheckOut.Add(Series.id);
            EpisodeToCheckOut.Add(Season.season_number);
            EpisodeToCheckOut.Add(episode);
            NavigationService.Navigate(typeof(EpisodePage), EpisodeToCheckOut);
        }