/// <summary> /// Loads the content of a bible /// </summary> /// <param name="key">Bible key</param> public void LoadBibleData(string key) { var rdr = new XmlBibleReader(); try { rdr.LoadContent(BibleList[key].Filename, BibleList[key].Bible); } catch (Exception e) { log.Error(e.Message); } }
/// <summary> /// Loads information of all bibles /// </summary> public void LoadBibleInfo() { BibleList = new Dictionary <string, BibleItem>(); foreach (var file in GetBibleFiles()) { var rdr = new XmlBibleReader(); try { var bi = new BibleItem { Bible = rdr.LoadMeta(file), Filename = file }; BibleList.Add(bi.Bible.Identifier ?? bi.Filename, bi); } catch (Exception e) { log.Error(e.Message); } } }