Пример #1
0
        private void bookSelector2_SelectionChanged(object sender, SelectionChangedEventArgs e)
        {
            SelectionHelper sh       = new SelectionHelper(dh.GetConnection());
            List <int>      chapters = sh.GetChapterList(bookSelector2.SelectedIndex + 1);

            chapterSelector2.Items.Clear();

            foreach (int chapter in chapters)
            {
                chapterSelector2.Items.Insert(chapter - 1, chapter);
            }

            chapterSelector2.Text      = "Chapter";
            chapterSelector2.IsEnabled = true;

            verseSelector2.Text      = "Verse";
            verseSelector2.IsEnabled = false;
        }