Лабораторная работа№6
This commit is contained in:
parent
5d662983bd
commit
9bf206eff5
@ -156,11 +156,13 @@ public partial class FormWarPlaneConfig : Form
|
||||
}
|
||||
private void labelAdditionalColor_DragEnter(object sender, DragEventArgs e)
|
||||
{
|
||||
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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user