diff --git a/AirBomber/AirBomber/FormPlaneCollection.cs b/AirBomber/AirBomber/FormPlaneCollection.cs index 24a8afa..e28684b 100644 --- a/AirBomber/AirBomber/FormPlaneCollection.cs +++ b/AirBomber/AirBomber/FormPlaneCollection.cs @@ -114,9 +114,8 @@ namespace ProjectAirBomber } FormPlaneConfig form = new FormPlaneConfig(pictureBoxCollection.Width, pictureBoxCollection.Height); form.Show(); - PlaneDelegate? planeDelegate = new((m) => { - bool q = (obj + m); - if (q) + PlaneDelegate? planeDelegate = new((plane) => { + if (obj + plane) { MessageBox.Show("Объект добавлен"); pictureBoxCollection.Image = obj.ShowPlanes();