From 05b2a8f7f296d3521ba49c5532af2dbffe089537 Mon Sep 17 00:00:00 2001 From: m1aksim1 Date: Thu, 24 Nov 2022 17:18:35 +0400 Subject: [PATCH] =?UTF-8?q?=D0=B8=D0=B7=D0=BC=D0=B5=D0=BD=D0=B5=D0=BD?= =?UTF-8?q?=D0=B8=D0=B5=20=D0=BD=D0=B0=D0=B7=D0=B2=D0=B0=D0=BD=D0=B8=D0=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- WarPlanes/WarPlanes/FormMapWithSetWarPlanes.cs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/WarPlanes/WarPlanes/FormMapWithSetWarPlanes.cs b/WarPlanes/WarPlanes/FormMapWithSetWarPlanes.cs index d9ea3f3..1cb8b78 100644 --- a/WarPlanes/WarPlanes/FormMapWithSetWarPlanes.cs +++ b/WarPlanes/WarPlanes/FormMapWithSetWarPlanes.cs @@ -135,7 +135,7 @@ namespace AirFighter else if (_mapsCollection[listBoxMaps.SelectedItem?.ToString() ?? string.Empty] + new DrawningObjectWarPlane(warplane) != -1) { MessageBox.Show("Объект добавлен"); - _logger.LogInformation("Добавлен объект {@Airplane}", warplane); + _logger.LogInformation("Добавлен объект {@WarPlane}", warplane); pictureBox.Image = _mapsCollection[listBoxMaps.SelectedItem?.ToString() ?? string.Empty].ShowSet(); } else @@ -151,7 +151,7 @@ namespace AirFighter } catch (ArgumentException ex) { - _logger.LogWarning("Ошибка добавления: {0}. Объект: {@Airplane}", ex.Message, warplane); + _logger.LogWarning("Ошибка добавления: {0}. Объект: {@WarPlane}", ex.Message, warplane); MessageBox.Show(ex.Message, "Результат", MessageBoxButtons.OK, MessageBoxIcon.Error); } } @@ -177,11 +177,11 @@ namespace AirFighter int pos = Convert.ToInt32(maskedTextBoxPosition.Text); try { - var deletedAirplane = _mapsCollection[listBoxMaps.SelectedItem?.ToString() ?? string.Empty] - pos; - if (deletedAirplane != null) + var deletedWarPlane = _mapsCollection[listBoxMaps.SelectedItem?.ToString() ?? string.Empty] - pos; + if (deletedWarPlane != null) { MessageBox.Show("Объект удален"); - _logger.LogInformation("Из текущей карты удален объект {@Airplane}", deletedAirplane); + _logger.LogInformation("Из текущей карты удален объект {@WarPlane}", deletedWarPlane); pictureBox.Image = _mapsCollection[listBoxMaps.SelectedItem?.ToString() ?? string.Empty].ShowSet(); } else