Лабораторная работа№6
This commit is contained in:
parent
5d662983bd
commit
9bf206eff5
@ -156,10 +156,12 @@ public partial class FormWarPlaneConfig : Form
|
|||||||
}
|
}
|
||||||
private void labelAdditionalColor_DragEnter(object sender, DragEventArgs e)
|
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;
|
e.Effect = DragDropEffects.Copy;
|
||||||
else
|
else
|
||||||
e.Effect = DragDropEffects.None;
|
e.Effect = DragDropEffects.None;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private void buttonAdd_Click(object sender, EventArgs e)
|
private void buttonAdd_Click(object sender, EventArgs e)
|
||||||
|
Loading…
Reference in New Issue
Block a user