private Reader.Reader CreateReader(bool showCloseButton) { Reader.Reader reader = new Reader.Reader { ShowCloseButton = showCloseButton }; reader.BibleChanged += this.OnSelectedTabBible_Changed; reader.SelectedVerseChanged += this.OnReaderSelectedVerse_Changed; return(reader); }
private void InitializeTabs() { this.uxLeftTab.Items.Add(this.uxIndexer); this.uxIndexer.ChapterChanged += this.SeletedChapter_Changed; this.uxIndexer.VerseChanged += this.SelectedVerse_Changed; Reader.Reader reader = this.CreateReader(false); this.uxMainTab.Items.Add(reader); }
public void LoadReader(int bibleId, string verseKey) { Reader.Reader reader = this.CreateReader(true); this.uxMainTab.Items.Add(reader); reader.SetBible(bibleId); if (!verseKey.IsNullEmptyOrWhiteSpace()) { string bibleKey = Formatters.ChangeBible(verseKey, bibleId); reader.SetChapter(bibleKey); reader.SetVerse(bibleKey); } }