private void ClearSelection() { if (SelectionExists) { SelectedPrimitive.ShapeToolLost(); SelectedPrimitive = null; UpdateCurrentTool(); } }