This commit is contained in:
DanilaSm08 2024-03-09 17:38:00 +04:00
commit 853473e882
2 changed files with 2 additions and 5 deletions

View File

@ -52,10 +52,7 @@ public class DrawningCleaningCar
{
EntityCleaningCar = new EntityCleaningCar();
EntityCleaningCar.Init(speed, weight, bodyColor, additionalColor, waterTank, sweepingBrush);
//_pictureWidth = null;
//_pictureHeight = null;
//_startPosX = null;
//_startPosY = null;
}
/// <summary>
/// Установка границ поля

View File

@ -71,7 +71,7 @@ namespace ProjectCleaningCar
return;
}
if (pictureBoxCleaningCar.Width == 0 || pictureBoxCleaningCar.Height == 0) return;
string name = ((Button)sender)?.Name ?? string.Empty;
string name = (sender as Control)?.Name ?? string.Empty;
bool result = false;
switch (name)
{