//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++; }
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); } }
public void AddVerse(Verse newVerse) { _verses.Add(newVerse); }
private string getVerse(Verse item) { return _bible.GetBook(item.Book).GetChapter(item.Chapter).GetVerse(item.VerseNumber); }