Example #1
0
 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));
     }
 }
Example #2
0
 private bool setBible(string versionName)
 {
     foreach(bible_data.Bible item in _bibles)
     {
         if(item.BibleVersion == versionName)
         {
             _currentBible = item;
             return true;
         }
     }
     return false;
 }
Example #3
0
 public IndexBuilder(bible_data.Bible bible)
 {
     _bible = bible;
     buildIndex();
 }