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