From 6f7fc52f5d5b90f2a42db274063d605bad0ee27b Mon Sep 17 00:00:00 2001 From: just1valery Date: Thu, 10 Nov 2022 14:50:20 +0400 Subject: [PATCH] =?UTF-8?q?=D1=84=D0=B8=D0=BA=D1=81=D1=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- WarmlyShip/WarmlyShip/FormMapWithSetShips.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/WarmlyShip/WarmlyShip/FormMapWithSetShips.cs b/WarmlyShip/WarmlyShip/FormMapWithSetShips.cs index e9841c1..9494f61 100644 --- a/WarmlyShip/WarmlyShip/FormMapWithSetShips.cs +++ b/WarmlyShip/WarmlyShip/FormMapWithSetShips.cs @@ -167,11 +167,11 @@ namespace WarmlyShip int pos = Convert.ToInt32(maskedTextBoxPosition.Text); try { - var deletedAirplane = _mapsCollection[listBoxMaps.SelectedItem?.ToString() ?? string.Empty] - pos; - if (deletedAirplane != null) + var deletedShip = _mapsCollection[listBoxMaps.SelectedItem?.ToString() ?? string.Empty] - pos; + if (deletedShip != null) { MessageBox.Show("Объект удален"); - _logger.LogInformation("Из текущей карты удален объект {@Airplane}", deletedAirplane); + _logger.LogInformation("Из текущей карты удален объект {@ship}", deletedShip); pictureBox.Image = _mapsCollection[listBoxMaps.SelectedItem?.ToString() ?? string.Empty].ShowSet(); } else