/// <summary> /// 动态获取层次性属性对象 /// </summary> /// <returns>返回属性对象</returns> public PropertyManageCls getPmc() { PropertyManageCls pmc = new PropertyManageCls(); string[] sections=getSections(); foreach(var section in sections) { string[] kvs = keyVals(section); foreach (var kv in kvs) { Property pp = new Property(kv.Split('=')[0], kv.Split('=')[1], false, true); pp.Category = section; pp.DisplayName = kv.Split('=')[0]; pmc.Add(pp); } } return pmc; }
/// <summary> /// 动态获取层次性属性对象 /// </summary> /// <returns>返回属性对象</returns> public PropertyManageCls getPmc() { PropertyManageCls pmc = new PropertyManageCls(); string[] sections = getSections(); foreach (var section in sections) { string[] kvs = keyVals(section); foreach (var kv in kvs) { Property pp = new Property(kv.Split('=')[0], kv.Split('=')[1], false, true); pp.Category = section; pp.DisplayName = kv.Split('=')[0]; pmc.Add(pp); } } return(pmc); }