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