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);
            }
        }
Esempio n. 2
0
 public void Remove(UIElementDataListColumnEntityAbstract value)
 {
     List.Remove(value);
 }
Esempio n. 3
0
 public void Insert(int index, UIElementDataListColumnEntityAbstract value)
 {
     List.Insert(index, value);
 }
Esempio n. 4
0
 public int IndexOf(UIElementDataListColumnEntityAbstract value)
 {
     return(List.IndexOf(value));
 }
Esempio n. 5
0
 public bool Contains(UIElementDataListColumnEntityAbstract value)
 {
     return(List.Contains(value));
 }
Esempio n. 6
0
 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));
 }