private void ClearSelection() { if (selectedObject != null) { selectedObject.ClearSelection(); selectedObject = null; } }