public override void RemoveChild(CLVBaseNode child) { CLVReferenceNode reference = child as CLVReferenceNode; if (reference != null) { base.RemoveChild(child); } }
public override void AddChild(CLVBaseNode child) { CLVReferenceNode reference = child as CLVReferenceNode; if (reference == null) { throw new ArgumentException("Child must be of type CLVReferenceNode", "child"); } HasError |= !reference.Exists; base.AddChild(child); }