Pibd-13 Kadyshev_M.I. LabWork06 Base #6

Closed
nezui wants to merge 2 commits from LabWork06 into LabWork05
Showing only changes of commit 9bf206eff5 - Show all commits

View File

@ -156,10 +156,12 @@ public partial class FormWarPlaneConfig : Form
}
private void labelAdditionalColor_DragEnter(object sender, DragEventArgs e)
{
if (e.Data.GetDataPresent(typeof(Color)))
if (_warPlane?.EntityWarPlane is EntityAirFighter _airFighter) {
if (e.Data.GetDataPresent(typeof(Color)))
e.Effect = DragDropEffects.Copy;
else
e.Effect = DragDropEffects.None;
}
}
private void buttonAdd_Click(object sender, EventArgs e)