diff --git a/Catamaran/FormBoatConfig.cs b/Catamaran/FormBoatConfig.cs index ed9bbf9..7f17d68 100644 --- a/Catamaran/FormBoatConfig.cs +++ b/Catamaran/FormBoatConfig.cs @@ -22,7 +22,7 @@ namespace Catamaran /// /// Событие /// - private event BoatDelegate EventAddBoat; + private event Action EventAddBoat; /// /// Конструктор /// @@ -55,11 +55,11 @@ namespace Catamaran /// Добавление события /// /// - public void AddEvent(BoatDelegate ev) + public void AddEvent(Action ev) { if (EventAddBoat == null) { - EventAddBoat = new BoatDelegate(ev); + EventAddBoat = new Action(ev); } else { diff --git a/Catamaran/FormMapWithSetBoats.cs b/Catamaran/FormMapWithSetBoats.cs index 25029c5..1f0c0ef 100644 --- a/Catamaran/FormMapWithSetBoats.cs +++ b/Catamaran/FormMapWithSetBoats.cs @@ -213,7 +213,7 @@ namespace Catamaran private void buttonAddBoat_Click_1(object sender, EventArgs e) { var formBoatConfig = new FormBoatConfig(); - formBoatConfig.AddEvent(new BoatDelegate(AddBoat)); + formBoatConfig.AddEvent(new Action(AddBoat)); // TODO Call method AddEvent from formCarConfig formBoatConfig.Show(); }