Пример #1
0
        //private int gnIndex;

        public DataObjectCollection(DataObject parent) {
            gParent = parent;
            gItems = new List<DataObject>();
        }
Пример #2
0
 /// <summary>
 /// 添加一个存储单元
 /// </summary>
 /// <param name="item"></param>
 public void Add(DataObject item) {
     item.Parent = gParent;
     item.Index = gItems.Count;
     gParent.Root.Regedit(item);
     gItems.Add(item);
 }
Пример #3
0
 public DataCollection(DataObject parent) {
     gnIndex = 0;
     gParent = parent;
     gItems = new List<DataUnit>();
 }