PIbd-12_Smolin_D.S. LabWork01 Simple #1 #1

Closed
d.smolinn wants to merge 5 commits from Lab1 into main
2 changed files with 2 additions and 5 deletions
Showing only changes of commit a575319b6c - Show all commits

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)
{