From 4e86ac6cb037bae8b197af87676a1de2b92ee4d1 Mon Sep 17 00:00:00 2001 From: Artyom_Yashin Date: Thu, 9 Nov 2023 17:18:06 +0400 Subject: [PATCH] Lab5 Done++ --- AirBomber/AirBomber/FormPlaneCollection.cs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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();