private void ConnectVisuals() { if (SelectedShapes == null || SelectedShapes.Count() != 2) { return; } AddConnection(SelectedShapes.First(), SelectedShapes.Last()); }