From e7fc65842a024a12b9c5d8134999cc63f1c7949a Mon Sep 17 00:00:00 2001 From: m1aksim1 Date: Sat, 29 Oct 2022 19:05:18 +0400 Subject: [PATCH] =?UTF-8?q?=D1=84=D0=B8=D0=BA=D1=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- WarPlanes/WarPlanes/FormWarPlaneConfig.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/WarPlanes/WarPlanes/FormWarPlaneConfig.cs b/WarPlanes/WarPlanes/FormWarPlaneConfig.cs index 203fe6d..a1b255d 100644 --- a/WarPlanes/WarPlanes/FormWarPlaneConfig.cs +++ b/WarPlanes/WarPlanes/FormWarPlaneConfig.cs @@ -116,7 +116,7 @@ /// 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; }