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); }
public virtual void RemoveExecutor(CExecutor childExecutor) { linkList.Remove(childExecutor.LinkNode); childExecutor.SetParent(null, false); }