поправки

This commit is contained in:
xom9kxom9k 2024-02-22 15:22:05 +04:00
parent f0893ad9af
commit da62af23c3
2 changed files with 3 additions and 3 deletions

View File

@ -2,7 +2,7 @@
/// <summary>
/// Класс отвечающий за прорисовку и перемещение объекта - сущности
/// </summary>
public class DrawingAntiAircraftGun
public class DrawningAntiAircraftGun
{
/// <summary>
/// Класс - сущность

View File

@ -5,7 +5,7 @@
/// <summary>
/// Поле объект для прорисовки объекта
/// </summary>
private DrawingAntiAircraftGun? _drawningAntiAircraftGun;
private DrawningAntiAircraftGun? _drawningAntiAircraftGun;
/// <summary>
/// конструктор формы
/// </summary>
@ -35,7 +35,7 @@
private void ButtonCreate_Click(object sender, EventArgs e)
{
Random random = new();
_drawningAntiAircraftGun = new DrawingAntiAircraftGun();
_drawningAntiAircraftGun = new DrawningAntiAircraftGun();
_drawningAntiAircraftGun.Init(random.Next(100, 300), random.Next(1000, 3000), Color.FromArgb(random.Next(0, 255),
random.Next(0, 255), random.Next(0, 255)), Color.FromArgb(random.Next(0, 255), random.Next(0, 255), random.Next(0, 255)),
Convert.ToBoolean(random.Next(0, 2)), Convert.ToBoolean(random.Next(0, 2)), Convert.ToBoolean(random.Next(0, 2)));