Исправлено название переменной
This commit is contained in:
parent
50c261a24c
commit
8380d8b6c4
@ -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();
|
||||||
|
Loading…
Reference in New Issue
Block a user