PIbd-14_Calimullin_A.R._Lab05_Simple #6

Closed
Bloody_Arthur wants to merge 5 commits from Lab05 into Lab04
Showing only changes of commit eebecaa3f1 - Show all commits

View File

@ -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();
}
}
}