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