From 8380d8b6c4d8cd99f97bdc6d5ee6f3aa015a3848 Mon Sep 17 00:00:00 2001 From: Danil Malin Date: Wed, 12 Oct 2022 23:05:43 +0400 Subject: [PATCH] =?UTF-8?q?=D0=98=D1=81=D0=BF=D1=80=D0=B0=D0=B2=D0=BB?= =?UTF-8?q?=D0=B5=D0=BD=D0=BE=20=D0=BD=D0=B0=D0=B7=D0=B2=D0=B0=D0=BD=D0=B8?= =?UTF-8?q?=D0=B5=20=D0=BF=D0=B5=D1=80=D0=B5=D0=BC=D0=B5=D0=BD=D0=BD=D0=BE?= =?UTF-8?q?=D0=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../WarmlyLocomotive/FormMapWithSetLocomotives.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/WarmlyLocomotive/WarmlyLocomotive/FormMapWithSetLocomotives.cs b/WarmlyLocomotive/WarmlyLocomotive/FormMapWithSetLocomotives.cs index f512cb6..9f1f729 100644 --- a/WarmlyLocomotive/WarmlyLocomotive/FormMapWithSetLocomotives.cs +++ b/WarmlyLocomotive/WarmlyLocomotive/FormMapWithSetLocomotives.cs @@ -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();