public static void Load() { ConfigData.LoadDataFromXml(ConfigPath); if (ConfigData.Count == 0) { ConfigEntity entity = new ConfigEntity(); entity.Name = "Default"; entity.IsDefault = true; entity.Provider = AssemblyHelper.GetTypeFullName(typeof(XmlConfigProvider)); entity.ParamCollection = new XCIList <ComponentParamEntity>(); entity.ParamCollection.Add(new ComponentParamEntity { Name = "FileName", Value = "ComponentConfig.xml" }); ConfigData.AddOrUpdate(entity); } }
public XmlEntityMetadata() { MetadataList.LoadDataFromXml(MetadataPath); }
public XmlGridConfigTemplate() { TemplateList.LoadDataFromXml(TemplatePath); }