public static void ReadSiteSettings() { MainWindow.Instance.MsgLeftLine(""); MainWindow.Instance.MsgLeftLine("at ctor AppSettings| UseSiteData", Info.UseSiteData.ToString()); // Info.SetSiteRootPath(Info.SiteRootPath); if (Info.UseSiteData) { SiteAdmin = SiteSettings.Admin; if (SiteAdmin.Status != SettingMgrStatus.NOPATH) { MainWindow.Instance.MsgLeftLine("at ctor AppSettings| before read| SitePath", SiteAdmin.Info?.SettingPathAndFile ?? "not defined"); SiteAdmin.Initialize(); SiteAdmin.Read(); SiteInfo = SiteSettings.Info; SiteData = SiteSettings.Data; MainWindow.Instance.MsgLeftLine("at ctor AppSettings| SitePath", Info.SettingPath); } else { MainWindow.Instance.MsgLeftLine("at ctor AppSettings", "*** site settings has no path ***"); } } }
public static void ReadSiteSettings() { Info.SetSiteRootPath(Info.SiteRootPath); if (Info.UseSiteData) { SiteAdmin = SiteSettings.Admin; SiteAdmin.Read(); SiteInfo = SiteSettings.Info; SiteData = SiteSettings.Data; } }