public override void FromXml(string strXml) { base.FromXml(strXml); SEXElement xmlDoc = SEXElement.Parse(strXml); this.DataEntityId = xmlDoc.GetInnerObject("/DataEntity"); //this.NavigationLocation = // (SEPaginationDataGridView.EnumNavigationLocation)xmlDoc.GetInnerObject<int>(XmlRootName + "/NavigationLocation",0); //this.Pagination = xmlDoc.GetInnerObject<bool>("/Pagination", false); //this.ShowItemCount = xmlDoc.GetInnerObject<bool>("/ShowItemCount", false); //this.ShowPageCount = xmlDoc.GetInnerObject<bool>("/ShowPageCount", false); //this.ShowPageHomeEnd = xmlDoc.GetInnerObject<bool>("/ShowPageHomeEnd", false); //添加列对象 foreach (XElement node in xmlDoc.SelectNodes("/Columns/Column")) { UIElementDataListColumnEntityAbstract formElementDataColumnEntity = ColumnEntityTypesAdapter.CreateInstance(Convert.ToInt32(node.Attribute("ColumnType").Value)); formElementDataColumnEntity.FromXml(node.ToString()); this.DataColumns.Add(formElementDataColumnEntity); } }
public void Remove(UIElementDataListColumnEntityAbstract value) { List.Remove(value); }
public void Insert(int index, UIElementDataListColumnEntityAbstract value) { List.Insert(index, value); }
public int IndexOf(UIElementDataListColumnEntityAbstract value) { return(List.IndexOf(value)); }
public bool Contains(UIElementDataListColumnEntityAbstract value) { return(List.Contains(value)); }
public int Add(UIElementDataListColumnEntityAbstract value) { value.DataList = this._dataListEntity; return(List.Add(value)); }
public UIElementDataListRowCellEntity(UIElementDataListRowEntity owningRow, UIElementDataListColumnEntityAbstract owningColumn) { OwningRow = owningRow; OwningColumn = owningColumn; }
public string GetName(UIElementDataListColumnEntityAbstract entity) { return(GetProvideAttribute(entity).Name); }
public UIElementDataListColumnEntityProvideAttribute GetProvideAttribute(UIElementDataListColumnEntityAbstract entity) { return(GetProvideAttribute(entity.GetType())); }
public string GetName(UIElementDataListColumnEntityAbstract entity) { return(_collection.GetName(entity)); }
public UIElementDataListColumnEntityProvideAttribute GetProvideAttribute(UIElementDataListColumnEntityAbstract entity) { return(_collection.GetProvideAttribute(entity)); }