/// ------------------------------------------------------------------------------------ /// <summary> /// Performs any needed tasks to ensure that the project is valid and has any objects /// required by this version of the application. /// </summary> /// <param name="cache"></param> /// <param name="existingProgressDlg">The existing progress dialog, if any.</param> /// ------------------------------------------------------------------------------------ public static void EnsureProjectValid(FdoCache cache, IAdvInd4 existingProgressDlg) { TeScrInitializer scrInitializer = new TeScrInitializer(cache); scrInitializer.RemoveRtlMarksFromScrProperties(); scrInitializer.EnsureScriptureTextsValid(); List<string> issuesToReport = scrInitializer.FixOrcsWithoutProps(); if (issuesToReport != null) { using (FixedOrphanFootnoteReportDlg dlg = new FixedOrphanFootnoteReportDlg( issuesToReport, cache.ProjectName(), FwApp.App)) { dlg.ShowDialog(); } } }
/// ------------------------------------------------------------------------------------ /// <summary> /// Returns the project name from the specified cache. If the connection is to a remote /// server, the string returned will include the server name, formatted in a form /// suitable for including in a window caption. /// </summary> /// <param name="cache">The FDO cache</param> /// ------------------------------------------------------------------------------------ public string GetProjectName(FdoCache cache) { CheckDisposed(); Debug.Assert(cache != null); return cache.ProjectName(); }