Пример #1
0
        public bool NextChapter()
        {
            IChapterPlayer player = GetCurrentPlayer() as IChapterPlayer;

            if (player == null || !player.ChaptersAvailable)
            {
                return(false);
            }
            // Can skip to next only if current chapter is not the last
            if (player.CurrentChapter == player.Chapters.Last())
            {
                return(false);
            }
            player.NextChapter();
            return(true);
        }
 /// <summary>
 /// Skips to next chapter.
 /// </summary>
 public virtual void NextChapter()
 {
     _chapterPlayer.NextChapter();
 }