Malin D. V. Lab work 3 #3

Merged
eegov merged 5 commits from LabWork_03 into LabWork_02 2022-10-14 08:41:53 +04:00
Showing only changes of commit 8380d8b6c4 - Show all commits

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();