Exemple #1
0
 //expects exact (case sensitive) reference like 1 John 3:2
 public void AddVerse(string book, int chapterNum, int verseNum, string verse)
 {
     Verse _tempVerse = new Verse(book, chapterNum, verseNum, verse);
     _verseList.Add(_tempVerse);
     _BibleHash.Add(_tempVerse.GetHashCode(), _lastVerseIndex);
     _lastVerseIndex++;
 }
Exemple #2
0
 public void AddWord(string word, Verse Verse)
 {
     Word node;
     if (_bibleIndex.TryGetValue(word, out node)) // check if word is in dictionary
     {
         node.AddVerse(Verse);
     }
     else // word not in dictionary so add it then use recursion
     {
         _bibleIndex.Add(word, new Word(word));
         AddWord(word, Verse);
     }
 }
Exemple #3
0
 public void AddVerse(Verse newVerse)
 {
     _verses.Add(newVerse);
 }
Exemple #4
0
 private string getVerse(Verse item)
 {
     return _bible.GetBook(item.Book).GetChapter(item.Chapter).GetVerse(item.VerseNumber);
 }