Beispiel #1
0
    public virtual void AddExecutor(CExecutor childExecutor)
    {
        if (childExecutor.Parent == this)
        {
            return;
        }

        if (null != childExecutor.Parent)
        {
            childExecutor.Parent.RemoveExecutor(childExecutor);
        }
        linkList.AddLast(childExecutor.LinkNode);
        childExecutor.SetParent(this, false);
    }
Beispiel #2
0
 public virtual void RemoveExecutor(CExecutor childExecutor)
 {
     linkList.Remove(childExecutor.LinkNode);
     childExecutor.SetParent(null, false);
 }