Example #1
0
 public void OnPreviousChapter()
 {
     var currentChapterIndex = GetCurrentChapterIndex();
     if (currentChapterIndex > 0)
     {
         CurrentChapter = epub.Chapters[currentChapterIndex - 1];
         index = 0;
         RaisePropertyChanged("CurrentWord");
     }
 }
Example #2
0
 public void SetCurrentFile(string filename)
 {
     epub = CurrentTextSourceFactory.GetTextSource(filename);
     EpubManager.Instance.CurrentTextSource = epub;
     CurrentChapter = epub.Chapters.First();
 }
Example #3
0
 public void OnNextChapter()
 {
     var currentChapterIndex = GetCurrentChapterIndex();
     if (currentChapterIndex < epub.Chapters.Count)
     {
         CurrentChapter = epub.Chapters[currentChapterIndex + 1];
         index = 0;
         RaisePropertyChanged("CurrentWord");
     }
 }