Небольшие изменения в форме.
This commit is contained in:
parent
575f9840a0
commit
dd63332041
@ -22,7 +22,7 @@ namespace AirplaneWithRadar
|
||||
/// <summary>
|
||||
/// Событие
|
||||
/// </summary>
|
||||
private event Action<DrawingAirplane> EventAddAirplane;
|
||||
public event AirplaneDelegate EventAddAirplane;
|
||||
/// <summary>
|
||||
/// Конструктор
|
||||
/// </summary>
|
||||
@ -56,7 +56,7 @@ namespace AirplaneWithRadar
|
||||
/// Добавление события
|
||||
/// </summary>
|
||||
/// <param name="ev"></param>
|
||||
public void AddEvent(Action<DrawingAirplane> ev)
|
||||
public void AddEvent(AirplaneDelegate ev)
|
||||
{
|
||||
if (EventAddAirplane == null)
|
||||
{
|
||||
@ -168,11 +168,13 @@ namespace AirplaneWithRadar
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
|
||||
|
||||
|
||||
private void ButtonOk_Click(object sender, EventArgs e)
|
||||
{
|
||||
EventAddAirplane?.Invoke(_airplane);
|
||||
Close();
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user