/// ------------------------------------------------------------------------------------- /// <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(); }
/// ------------------------------------------------------------------------------------ /// <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); }
/// ------------------------------------------------------------------------------------ /// <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; }