ISEbd-21 Melnikov I. O. Lab work 05 advanced #5

Closed
Igor-Melnikov wants to merge 5 commits from Lab05 into Lab04
Showing only changes of commit 1b8ab2bb3b - Show all commits

View File

@ -106,7 +106,7 @@
break;
}
}
else if (_locomotive != null)
else if (_locomotive != null && e.Data.GetDataPresent(typeof(IDrawningAdditionalElements)))
{
var ornament = e.Data.GetData(typeof(IDrawningAdditionalElements));
_locomotive.AdditionalElements = (IDrawningAdditionalElements)ornament;