public override void InitStaticUIConfig(BxXmlUIItem staticItem) { base.InitStaticUIConfig(staticItem); BxXmlUITable t = staticItem.SubItemTable; if (t != null) { _columnConfigs = new IBxUIConfigEx[t.SubColumns.Length]; BxXmlUIItem item = null; for (int i = 0; i < t.SubColumns.Length; i++) { item = new BxXmlUIItem(t.SubColumns[i], _staticItem.UIConfigFile); _columnConfigs[i] = new BxUIConfigItemEx(item); } } }
public override void InitFieldInfo(IBxCompound container, FieldInfo info) { base.InitFieldInfo(container, info); //获取Sub element 的配置 BxXmlUIItem staticItem = GetXmlUIItem(); BxXmlUITable t = staticItem.SubItemTable; if (t != null) { _columnConfigs = new IBxUIConfigEx[t.SubColumns.Length]; BxXmlUIItem item = null; for (int i = 0; i < t.SubColumns.Length; i++) { item = new BxXmlUIItem(t.SubColumns[i], _staticItem.UIConfigFile); _columnConfigs[i] = new BxUIConfigItemEx(item); } } }