добавление проверки в драгдроп для панели

This commit is contained in:
Мельников Игорь 2022-12-08 19:23:35 +04:00
parent a77bd466ee
commit 1b8ab2bb3b

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;