Example #1
0
        private void OpenBible(IBible bible)
        {
            if (!openedBibles.Contains(bible.Name))
            {
                var bview = new BibleView();
                bview.CloseRequested       += OnBibleViewCloseRequested;
                bview.SelectedVerseChanged += OnBibleViewSelectedVerseChanged;
                bview.Bible = bible;

                AddView(bview);
                openedBibles.Add(bible.Name);
            }
        }
Example #2
0
        void btn_Clicked(object sender, EventArgs e)
        {
            Button evtButton = sender as Button;

            User.CacheData.Verse = Convert.ToInt32(evtButton.Text);


            var grid = this.Parent as Grid;

            var grid_ = grid.Parent.Parent as Grid;

            BibleView bible = new BibleView();

            grid_.Children.Clear();
            grid_.Children.Add(bible);
        }