示例#1
0
        /// ------------------------------------------------------------------------------------
        /// <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());
        }
示例#3
0
		/// -------------------------------------------------------------------------------------
		/// <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());
		}