From eebecaa3f1a3f708aa9ca022b02959f422702f72 Mon Sep 17 00:00:00 2001 From: artur-kalimullin <144933634+artur-kalimullin@users.noreply.github.com> Date: Sun, 7 Apr 2024 11:46:06 +0400 Subject: [PATCH] =?UTF-8?q?=D0=BF=D1=80=D0=B0=D0=B2=D0=BA=D0=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../ProjectAirFighter/FormAirCraftConfig.cs | 28 +++++++++---------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/ProjectAirFighter/ProjectAirFighter/FormAirCraftConfig.cs b/ProjectAirFighter/ProjectAirFighter/FormAirCraftConfig.cs index eb1f844..76486fa 100644 --- a/ProjectAirFighter/ProjectAirFighter/FormAirCraftConfig.cs +++ b/ProjectAirFighter/ProjectAirFighter/FormAirCraftConfig.cs @@ -110,20 +110,6 @@ public partial class FormAirCraftConfig : Form { (sender as Control)?.DoDragDrop((sender as Control)?.BackColor!, DragDropEffects.Move | DragDropEffects.Copy); } - - /// - /// Передача объекта - /// - /// - /// - private void buttonAdd_Click(object sender, EventArgs e) - { - if (_aircraft != null) - { - _aircraftDelegate?.Invoke(_aircraft); - Close(); - } - } private void labelBodyColor_DragDrop(object sender, DragEventArgs e) { if (_aircraft == null) return; @@ -146,4 +132,18 @@ public partial class FormAirCraftConfig : Form if (e.Data.GetDataPresent(typeof(Color))) e.Effect = DragDropEffects.Copy; else e.Effect = DragDropEffects.None; } + + /// + /// Передача объекта + /// + /// + /// + private void buttonAdd_Click(object sender, EventArgs e) + { + if (_aircraft != null) + { + _aircraftDelegate?.Invoke(_aircraft); + Close(); + } + } } \ No newline at end of file