public void SetToken(TDelegate node) { if (_token_ != null) { _token_.Parent(null); } if (node != null) { if (node.Parent() != null) { node.Parent().RemoveChild(node); } node.Parent(this); } _token_ = node; }
public void SetDelegate(TDelegate node) { if (_delegate_ != null) { _delegate_.Parent(null); } if (node != null) { if (node.Parent() != null) { node.Parent().RemoveChild(node); } node.Parent(this); } _delegate_ = node; }