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

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(); FormLocomotive form = new();
if (form.ShowDialog() == DialogResult.OK) if (form.ShowDialog() == DialogResult.OK)
{ {
DrawningObjectLocomotive car = new(form.SelectedLocomotive); DrawningObjectLocomotive locomotive = new(form.SelectedLocomotive);
if (_mapLocomotivesCollectionGeneric + car != -1) if (_mapLocomotivesCollectionGeneric + locomotive != -1)
{ {
MessageBox.Show("Объект добавлен"); MessageBox.Show("Объект добавлен");
pictureBox.Image = _mapLocomotivesCollectionGeneric.ShowSet(); pictureBox.Image = _mapLocomotivesCollectionGeneric.ShowSet();