//添加新单元
 public void addElement(DynamicNode element)
 {
     if (!Nodes.Contains(element))
     {
         Nodes.Add(element);
     }
 }
 //设置单元
 public void setElement(DynamicNode element, int index)
 {
     if (index < 0 || index >= this.getElementCount())
     {
         return;
     }
     Nodes[index] = element;
 }
 //插入单元
 public void insertElement(DynamicNode element, int index)
 {
     if (index < 0 || index >= this.getElementCount())
     {
         return;
     }
     if (!Nodes.Contains(element))
     {
         Nodes.Insert(index, element);
     }
 }
 //获得元素ID
 public int getElementID(DynamicNode element)
 {
     return Nodes.IndexOf(element);
 }