правка
This commit is contained in:
parent
6f847d639c
commit
eebecaa3f1
@ -110,20 +110,6 @@ public partial class FormAirCraftConfig : Form
|
||||
{
|
||||
(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)
|
||||
{
|
||||
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;
|
||||
}
|
||||
|
||||
/// <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();
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user