Example #1
0
        private void chapterSelector2_SelectionChanged(object sender, SelectionChangedEventArgs e)
        {
            SelectionHelper sh     = new SelectionHelper(dh.GetConnection());
            List <int>      verses = sh.GetVerseList(bookSelector2.SelectedIndex + 1, chapterSelector2.SelectedIndex + 1);

            verseSelector2.Items.Clear();

            foreach (int verse in verses)
            {
                verseSelector2.Items.Insert(verse - 1, verse);
            }

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