From f433aaf59bbc3997aeaad45cd9f35438991bee26 Mon Sep 17 00:00:00 2001 From: tellsense Date: Tue, 26 Dec 2023 23:33:13 +0400 Subject: [PATCH] =?UTF-8?q?=D0=93=D0=BE=D1=82=D0=BE=D0=B2=D0=BE.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../ProjectElectricLocomotive/DrawningWheels.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ProjectElectricLocomotive/ProjectElectricLocomotive/DrawningWheels.cs b/ProjectElectricLocomotive/ProjectElectricLocomotive/DrawningWheels.cs index d8ef7f3..2e022f5 100644 --- a/ProjectElectricLocomotive/ProjectElectricLocomotive/DrawningWheels.cs +++ b/ProjectElectricLocomotive/ProjectElectricLocomotive/DrawningWheels.cs @@ -12,7 +12,7 @@ namespace ProjectElectricLocomotive private Wheels amount; public void SetAmount(int a) { - if (a == 2) + if (a <= 2) { amount = Wheels.Two; } @@ -20,7 +20,7 @@ namespace ProjectElectricLocomotive { amount = Wheels.Three; } - else if (a == 4) + else if (a >= 4) { amount = Wheels.Four; } @@ -30,7 +30,7 @@ namespace ProjectElectricLocomotive Brush wheelsColor = new SolidBrush(Color.Black); if (amount == Wheels.Two) g.FillEllipse(wheelsColor, _startPosX + 90, _startPosY + 45, 10, 10); - g.FillEllipse(wheelsColor, _startPosX + 100, _startPosY + 45, 10, 10); + g.FillEllipse(wheelsColor, _startPosX + 140, _startPosY + 45, 10, 10); if (amount == Wheels.Three) {