Ejemplo n.º 1
0
        /// -------------------------------------------------------------------------------------
        /// <summary>
        /// Create factory note categories from the TE ScrNoteCategories XML file.
        /// </summary>
        /// <param name="progressDlg">Progress dialog so the user can cancel</param>
        /// <param name="scr">The Scripture</param>
        /// -------------------------------------------------------------------------------------
        public static void CreateFactoryScrNoteCategories(IAdvInd4 progressDlg, IScripture scr)
        {
            TeScrNoteCategoriesInit noteCategoriesInitializer = new TeScrNoteCategoriesInit(progressDlg,
                                                                                            scr, LoadScrNoteCategoriesDoc());

            noteCategoriesInitializer.CreateScrNoteCategories();
        }
Ejemplo n.º 2
0
        /// ------------------------------------------------------------------------------------
        /// <summary>
        /// Creates the scripture note categories.
        /// </summary>
        /// <param name="dlg">The progress dialog.</param>
        /// <param name="parameters">The parameters: first parameter is a XmlNode with the
        /// notes categories, second parameter is the scripture object.</param>
        /// <returns>Always <c>null</c>.</returns>
        /// ------------------------------------------------------------------------------------
        private static object CreateScrNoteCategories(IAdvInd4 dlg, params object[] parameters)
        {
            Debug.Assert(parameters.Length == 2);
            XmlNode    scrNoteCategories = (XmlNode)parameters[0];
            IScripture scr = (IScripture)parameters[1];

            TeScrNoteCategoriesInit noteCategoriesInitializer =
                new TeScrNoteCategoriesInit(dlg, scr, scrNoteCategories);

            noteCategoriesInitializer.CreateScrNoteCategories();

            return(null);
        }
Ejemplo n.º 3
0
		/// -------------------------------------------------------------------------------------
		/// <summary>
		/// Create factory note categories from the TE ScrNoteCategories XML file.
		/// </summary>
		/// <param name="progressDlg">Progress dialog so the user can cancel</param>
		/// <param name="scr">The Scripture</param>
		/// -------------------------------------------------------------------------------------
		public static void CreateFactoryScrNoteCategories(IAdvInd4 progressDlg, IScripture scr)
		{
			TeScrNoteCategoriesInit noteCategoriesInitializer = new TeScrNoteCategoriesInit(progressDlg,
				scr, LoadScrNoteCategoriesDoc());
			noteCategoriesInitializer.CreateScrNoteCategories();
		}
Ejemplo n.º 4
0
		/// ------------------------------------------------------------------------------------
		/// <summary>
		/// Creates the scripture note categories.
		/// </summary>
		/// <param name="dlg">The progress dialog.</param>
		/// <param name="parameters">The parameters: first parameter is a XmlNode with the
		/// notes categories, second parameter is the scripture object.</param>
		/// <returns>Always <c>null</c>.</returns>
		/// ------------------------------------------------------------------------------------
		private static object CreateScrNoteCategories(IAdvInd4 dlg, params object[] parameters)
		{
			Debug.Assert(parameters.Length == 2);
			XmlNode scrNoteCategories = (XmlNode)parameters[0];
			IScripture scr = (IScripture)parameters[1];

			TeScrNoteCategoriesInit noteCategoriesInitializer =
				new TeScrNoteCategoriesInit(dlg, scr, scrNoteCategories);
			noteCategoriesInitializer.CreateScrNoteCategories();

			return null;
		}