From caacb5672f1c09ad8c02eef8314be4f654ea3e12 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=94=D0=B0=D0=BD=D0=B8=D1=8F=D1=80=20=D0=90=D0=B3=D0=BB?= =?UTF-8?q?=D0=B8=D1=83=D0=BB=D0=BB=D0=BE=D0=B2?= Date: Thu, 29 Sep 2022 22:23:01 +0400 Subject: [PATCH] =?UTF-8?q?=D0=97=D0=B0=D0=BC=D0=B5=D0=BD=D0=B0=20pictureB?= =?UTF-8?q?oxCar?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- AirBomber/AirBomber/FormAirBomber.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/AirBomber/AirBomber/FormAirBomber.cs b/AirBomber/AirBomber/FormAirBomber.cs index ec360b8..d412dc9 100644 --- a/AirBomber/AirBomber/FormAirBomber.cs +++ b/AirBomber/AirBomber/FormAirBomber.cs @@ -29,7 +29,7 @@ namespace AirBomber private void SetData() { Random rnd = new(); - _airplane.SetPosition(rnd.Next(10, 100), rnd.Next(10, 100), pictureBoxCar.Width, pictureBoxCar.Height); + _airplane.SetPosition(rnd.Next(10, 100), rnd.Next(10, 100), pictureBoxAirplane.Width, pictureBoxAirplane.Height); toolStripStatusLabelSpeed.Text = $"Скорость: {_airplane.Airplane.Speed}"; toolStripStatusLabelWeight.Text = $"Вес: {_airplane.Airplane.Weight}"; toolStripStatusLabelBodyColor.Text = $"Цвет: {_airplane.Airplane.BodyColor.Name}"; @@ -119,7 +119,7 @@ namespace AirBomber /// /// /// - private void ButtonSelectCar_Click(object sender, EventArgs e) + private void ButtonSelectAirplane_Click(object sender, EventArgs e) { SelectedAirplane = _airplane; DialogResult = DialogResult.OK;