예제 #1
0
        public void Append(DataSet ds)
        {
            if (ds == null || ds.Tables.Count <= 0)
            {
                return;
            }

            foreach (DataRow row in ds.Tables[0].Rows)
            {
                BusinessObject objItemInfo = (BusinessObject)Controller.GetObjectFromDataRow(row);
                if (objItemInfo != null)
                {
                    this.Add((T)objItemInfo);
                    BackupInnerList.Add((T)objItemInfo.Clone());
                }
            }

            this.ResetBindings();
        }