public BibleBuilder(string fileLocation) { switch (getFormatName(fileLocation)) { case "Zefania XML Bible Markup Language": _bible = new bible_data.Bible(); _reader = new OpenXML_Zefania_XML_Bible_Markup_Language(fileLocation, _bible.GetManipulator()); break; default: throw new System.ArgumentException("XML format not recognized.", getFormatName(fileLocation)); } }
private bool setBible(string versionName) { foreach(bible_data.Bible item in _bibles) { if(item.BibleVersion == versionName) { _currentBible = item; return true; } } return false; }
public IndexBuilder(bible_data.Bible bible) { _bible = bible; buildIndex(); }