Убрала лишнее

This commit is contained in:
Hells Hound 2022-09-21 09:29:12 +04:00
parent 614a721e04
commit 6eb7548f3e
2 changed files with 2 additions and 3 deletions

View File

@ -65,8 +65,7 @@ namespace AircraftCarrier
_startPosY = y;
_pictureWidth = width;
_pictureHeight = height;
}
else return;
}
}
/// <summary>
/// Изменение направления пермещения

View File

@ -23,7 +23,7 @@ namespace AircraftCarrier
/// <param name="sender"></param>
/// <param name="e"></param>
private void ButtonCreate_Click(object sender, EventArgs e)
{
{
Random rnd = new();
_warship = new DrawingWarship();
_warship.Init(rnd.Next(100, 300), rnd.Next(1000, 2000), Color.FromArgb(rnd.Next(0, 256), rnd.Next(0, 256), rnd.Next(0, 256)));