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