示例#1
0
 //重新设置父类
 public void resetElementParent()
 {
     for (int i = 0; i < getElementCount(); i++)
     {
         ObjectElement element = (ObjectElement)getElement(i);
         element.parent = this;
     }
 }
示例#2
0
        public bool cloneElement(int index)
        {
            if (index < 0 || index >= objList.Count)
            {
                return(false);
            }
            ObjectElement elementIndex = ((ObjectElement)getElement(index));
            ObjectElement element      = elementIndex.clone();

            addElement(element);
            return(true);
        }
示例#3
0
 public static bool allowUpdateUI = true; //允许更新UI
 public void cloneTo(ObjectVector newInstance)
 {
     newInstance.listBox     = listBox;
     newInstance.listBoxAide = listBoxAide;
     for (int i = 0; i < objList.Count; i++)
     {
         ObjectElement element    = (ObjectElement)objList[i];
         ObjectElement newElement = element.clone();
         newInstance.addElement(newElement);
         newElement.parent = newInstance;
     }
 }
示例#4
0
 public void baseCloneTo(ObjectElement newInstance)
 {
     newInstance.parent = parent;
     newInstance.name   = name + "";
 }
 public void baseCloneTo(ObjectElement newInstance)
 {
     newInstance.parent = parent;
     newInstance.name = name + "";
 }