Исправление

This commit is contained in:
ChipsEater 2022-10-25 15:51:51 +04:00
parent 3cee8a2eab
commit 5df31a4985

View File

@ -13,7 +13,7 @@ namespace Artilleries
public partial class FormArtilleryConfig : Form
{
DrawingArtillery _artillery = null;
private event ArtilleryDelegate EventAddArtillery;
private event Action<DrawingArtillery> EventAddArtillery;
public FormArtilleryConfig()
{
@ -101,11 +101,11 @@ namespace Artilleries
DrawArtillery();
}
public void AddEvent(ArtilleryDelegate ev)
public void AddEvent(Action<DrawingArtillery> ev)
{
if (EventAddArtillery == null)
{
EventAddArtillery = new ArtilleryDelegate(ev);
EventAddArtillery = new Action<DrawingArtillery>(ev);
}
else
{