Исправлено название переменной

This commit is contained in:
Danil Malin 2022-10-12 23:05:43 +04:00
parent 50c261a24c
commit 8380d8b6c4

View File

@ -65,8 +65,8 @@ namespace WarmlyLocomotive
FormLocomotive form = new();
if (form.ShowDialog() == DialogResult.OK)
{
DrawningObjectLocomotive car = new(form.SelectedLocomotive);
if (_mapLocomotivesCollectionGeneric + car != -1)
DrawningObjectLocomotive locomotive = new(form.SelectedLocomotive);
if (_mapLocomotivesCollectionGeneric + locomotive != -1)
{
MessageBox.Show("Объект добавлен");
pictureBox.Image = _mapLocomotivesCollectionGeneric.ShowSet();