/// ------------------------------------------------------------------------------------ /// <summary> /// Initializes the Scripture object, along with styles, book names and abbreviations. /// </summary> /// ------------------------------------------------------------------------------------ private void InitializeScriptureAndStyles(IProgress progressDlg) { m_scr = m_cache.LanguageProject.TranslatedScriptureOA = m_cache.ServiceLocator.GetInstance <IScriptureFactory>().Create(); //Initialize factory styles TeStylesXmlAccessor.CreateFactoryScrStyles(progressDlg, m_scr); //Initialize Scripture Book Ref info TeScrBookRefsInit.SetNamesAndAbbreviations(progressDlg, m_cache); }
/// ------------------------------------------------------------------------------------- /// <summary> /// Sets localized names and abbreviations for ScrBookRefs using values from the XML file. /// </summary> /// <param name="progressDlg">Progress dialog so the user can cancel</param> /// <param name="cache">The cache</param> /// ------------------------------------------------------------------------------------- internal static void SetNamesAndAbbreviations(IProgress progressDlg, FdoCache cache) { TeScrBookRefsInit scrRefInit = new TeScrBookRefsInit(cache); scrRefInit.SetNamesAndAbbreviations(progressDlg, scrRefInit.LoadDoc()); }