Merge branch 'Lab1' of http://student.git.athene.tech/d.smolinn/PIbd-12_Smolin_D.S._Simple into Lab1
This commit is contained in:
commit
853473e882
@ -52,10 +52,7 @@ public class DrawningCleaningCar
|
|||||||
{
|
{
|
||||||
EntityCleaningCar = new EntityCleaningCar();
|
EntityCleaningCar = new EntityCleaningCar();
|
||||||
EntityCleaningCar.Init(speed, weight, bodyColor, additionalColor, waterTank, sweepingBrush);
|
EntityCleaningCar.Init(speed, weight, bodyColor, additionalColor, waterTank, sweepingBrush);
|
||||||
//_pictureWidth = null;
|
|
||||||
//_pictureHeight = null;
|
|
||||||
//_startPosX = null;
|
|
||||||
//_startPosY = null;
|
|
||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Установка границ поля
|
/// Установка границ поля
|
||||||
|
@ -71,7 +71,7 @@ namespace ProjectCleaningCar
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (pictureBoxCleaningCar.Width == 0 || pictureBoxCleaningCar.Height == 0) 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;
|
bool result = false;
|
||||||
switch (name)
|
switch (name)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user