Exemplo n.º 1
0
 public VerseViewModel()
 {
     repo = new BibleRepository(); //using the default kjv version
     SetBookList();                //This will cause the other lists to be populated.
     SelectedChapter    = 0;
     SelectedVerseStart = 0;
     SelectedVerseEnd   = 0;
 }
Exemplo n.º 2
0
 public MainViewModel()
 {
     _BibleRepository    = new BibleRepository();
     Topics              = BibleBeliefsRepository.GetTopics();
     SelectedTopic       = Topics[0];
     NewTopicCommand     = new DelegateCommand <object>(ClickNewTopic, (object o) => true);
     NewBeliefCommand    = new DelegateCommand <object>(ClickNewBelief, (object o) => SelectedTopic != null);
     NewVerseCommand     = new DelegateCommand <object>(ClickNewVerse, (object o) => SelectedBelief != null);
     EditTopicCommand    = new DelegateCommand <object>(ClickEditTopic, (object o) => true);
     EditBeliefCommand   = new DelegateCommand <object>(ClickEditBelief, (object o) => SelectedTopic != null);
     EditVerseCommand    = new DelegateCommand <object>(ClickEditVerse, (object o) => SelectedBelief != null);
     DeleteTopicCommand  = new DelegateCommand <object>(ClickDeleteTopic, (object o) => true);
     DeleteBeliefCommand = new DelegateCommand <object>(ClickDeleteBelief, (object o) => SelectedTopic != null);
     DeleteVerseCommand  = new DelegateCommand <object>(ClickDeleteVerse, (object o) => SelectedBelief != null);
 }
Exemplo n.º 3
0
 public void Init()
 {
     _dailyReadingRepository = new BibleRepository();
     _bible = GetBible();
 }
Exemplo n.º 4
0
 /// <summary>
 /// Dictionary Constructor
 /// </summary>
 public BibleController()
 {
     _bibleRepository = new BibleRepository();
 }
 /// <summary>
 /// Constructor
 /// </summary>
 public DailyReadingController()
 {
     _dailyReadingRepository = BibleRepository.GetInstance();
 }