From 1a626daa2b6aabb50fca68d5f2c1ac790f2afe36 Mon Sep 17 00:00:00 2001 From: tellsense Date: Sun, 24 Dec 2023 13:52:13 +0400 Subject: [PATCH] =?UTF-8?q?7=20lab=20=D0=B8=D1=81=D0=BF=D1=80=D0=B2.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../ElectricLocomotive/FormLocomotiveCollection.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ElectricLocomotive/ElectricLocomotive/FormLocomotiveCollection.cs b/ElectricLocomotive/ElectricLocomotive/FormLocomotiveCollection.cs index 74ab322..54d2227 100644 --- a/ElectricLocomotive/ElectricLocomotive/FormLocomotiveCollection.cs +++ b/ElectricLocomotive/ElectricLocomotive/FormLocomotiveCollection.cs @@ -131,12 +131,13 @@ namespace ProjectElectricLocomotive if (removeObj != null) { MessageBox.Show("Объект удален"); - _logger.LogInformation($"Удален объект с позиции{pos}"); + _logger.LogInformation($"Удален объект с позиции {pos}"); pictureBoxCollection.Image = obj.ShowLocomotives(); } else { MessageBox.Show("Не удалось удалить объект"); + _logger.LogWarning("Не удалось удалить объект"); } } catch (LocomotiveNotFoundException ex)