public void DrawingPanelLeftMouseButtonPressed(int mouseX, int mouseY) { var shape = SelectedShapes.FirstOrDefault(s => s.Contains(mouseX, mouseY)); if (shape != null) { ClickedOnSelectedShape = true; } }