コード例 #1
0
        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);
        }
コード例 #2
0
        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);
        }
コード例 #3
0
        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);
            }
        }