public bool ContainsDrawable(DrawableBase drawable) { if (ChildCircuitParts.Count > 0) { foreach (var child in ChildCircuitParts) { if (child.ContainsDrawable(drawable)) { return(true); } } return(false); } else { return(Drawables.Contains(drawable)); } }