示例#1
0
 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);
     }
 }
示例#2
0
 public XmlEntityMetadata()
 {
     MetadataList.LoadDataFromXml(MetadataPath);
 }
 public XmlGridConfigTemplate()
 {
     TemplateList.LoadDataFromXml(TemplatePath);
 }