This commit is contained in:
m1aksim1 2022-10-29 19:05:18 +04:00
parent 52bae3ef75
commit e7fc65842a

View File

@ -116,7 +116,7 @@
/// <param name="e"></param>
private void LabelBaseColor_DragEnter(object sender, DragEventArgs e)
{
if (e.Data.GetDataPresent(typeof(Color)))
if (e.Data.GetDataPresent(typeof(Color)) && _warplane != null)
{
e.Effect = DragDropEffects.Copy;
}
@ -164,7 +164,7 @@
private void labelDopColor_DragEnter(object sender, DragEventArgs e)
{
if (e.Data.GetDataPresent(typeof(Color)))
if (_warplane != null && _warplane is DrawningFighter && e.Data.GetDataPresent(typeof(Color)))
{
e.Effect = DragDropEffects.Copy;
}