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;