правка

This commit is contained in:
artur-kalimullin 2024-04-07 11:46:06 +04:00
parent 6f847d639c
commit eebecaa3f1

View File

@ -110,20 +110,6 @@ public partial class FormAirCraftConfig : Form
{ {
(sender as Control)?.DoDragDrop((sender as Control)?.BackColor!, DragDropEffects.Move | DragDropEffects.Copy); (sender as Control)?.DoDragDrop((sender as Control)?.BackColor!, DragDropEffects.Move | DragDropEffects.Copy);
} }
/// <summary>
/// Передача объекта
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
private void buttonAdd_Click(object sender, EventArgs e)
{
if (_aircraft != null)
{
_aircraftDelegate?.Invoke(_aircraft);
Close();
}
}
private void labelBodyColor_DragDrop(object sender, DragEventArgs e) private void labelBodyColor_DragDrop(object sender, DragEventArgs e)
{ {
if (_aircraft == null) return; if (_aircraft == null) return;
@ -146,4 +132,18 @@ public partial class FormAirCraftConfig : Form
if (e.Data.GetDataPresent(typeof(Color))) e.Effect = DragDropEffects.Copy; if (e.Data.GetDataPresent(typeof(Color))) e.Effect = DragDropEffects.Copy;
else e.Effect = DragDropEffects.None; else e.Effect = DragDropEffects.None;
} }
/// <summary>
/// Передача объекта
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
private void buttonAdd_Click(object sender, EventArgs e)
{
if (_aircraft != null)
{
_aircraftDelegate?.Invoke(_aircraft);
Close();
}
}
} }