public static void Initialize() { Pages = SettingsPageCollection.Get(SettingsFileName); foreach (var item in DialectAddonType.Instance.StaticSpace.GetAllAddons()) { DialectSettings[item.Name] = SettingsPageCollection.Get(Pages, Path.Combine(Core.SettingsDirectory, "dialect-" + item.Name + ".xml")); } }
public SettingsPageCollection GetDatabaseSettings(string dbname) { if (DatabaseMode != ConnectionDatabaseMode.All) { return(null); } if (dbname == null) { return(null); } return(SettingsPageCollection.Get(ConnectionSettings, Path.Combine(Path.Combine(FileName + ".databases", dbname), "settings.xml"))); }