diff --git a/MotorBoat/MotorBoat/BoatDelegate.cs b/MotorBoat/MotorBoat/BoatDelegate.cs deleted file mode 100644 index 873b741..0000000 --- a/MotorBoat/MotorBoat/BoatDelegate.cs +++ /dev/null @@ -1,10 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; - -namespace MotorBoat -{ - public delegate void BoatDelegate(DrawningBoat boat); -} diff --git a/MotorBoat/MotorBoat/FormBoatConfig.cs b/MotorBoat/MotorBoat/FormBoatConfig.cs index 8c2cc68..dfb9e81 100644 --- a/MotorBoat/MotorBoat/FormBoatConfig.cs +++ b/MotorBoat/MotorBoat/FormBoatConfig.cs @@ -12,7 +12,7 @@ namespace MotorBoat { public partial class FormBoatConfig : Form { - private event BoatDelegate EventAddBoat; + private event Action EventAddBoat; DrawningBoat _boat = null; public FormBoatConfig() { @@ -28,11 +28,11 @@ namespace MotorBoat buttonCancel.Click += (s, a) => Close(); } - public void AddEvent(BoatDelegate ev) + public void AddEvent(Action ev) { if (EventAddBoat == null) { - EventAddBoat = new BoatDelegate(ev); + EventAddBoat = new Action(ev); } else {