public override void FromXml(string strXml) { SEXElement xmlDoc = SEXElement.Parse(strXml); this.Id = xmlDoc.GetAttributeObject("Id"); this.Name = xmlDoc.GetAttributeObject("Name"); this.Code = xmlDoc.GetAttributeObject("Code"); this.Text = xmlDoc.GetInnerObject("/Text"); this.Width = xmlDoc.GetInnerObject <int>("/Width", 100); this.Remark = xmlDoc.GetInnerObject("/Remark"); this.IsBind = xmlDoc.GetInnerObject <bool>("/IsBind", false); this.DataItemId = xmlDoc.GetInnerObject("/DataItemId"); this.DataPropertyName = xmlDoc.GetInnerObject("/DataPropertyName"); this.Visible = xmlDoc.GetInnerObject <bool>("/Visible", true); this.DataRule = DataRuleTypesAdapter.CreateInstance(xmlDoc.GetAttributeObject <int>("/DataRule", "Type", 0)); Debug.Assert(this.DataRule != null, "������DataRuleδ�ܳ�ʼ��"); if (this.DataRule != null) { this.DataRule.FromXml(xmlDoc.SelectSingleNode("/DataRule").ToString()); } }
public string GetName(UIElementDataListColumnDataRuleAbstract entity) { return(GetProvideAttribute(entity).Name); }
public UIElementDataListColumnDataRuleProvideAttribute GetProvideAttribute(UIElementDataListColumnDataRuleAbstract entity) { return(GetProvideAttribute(entity.GetType())); }
public string GetName(UIElementDataListColumnDataRuleAbstract entity) { return(_collection.GetName(entity)); }
public UIElementDataListColumnDataRuleProvideAttribute GetProvideAttribute(UIElementDataListColumnDataRuleAbstract entity) { return(_collection.GetProvideAttribute(entity)); }