Polevoy S.V Lab_work5 #5

Merged
eegov merged 4 commits from LabWork05 into LabWork04 2022-10-28 09:27:37 +04:00
Showing only changes of commit 5df31a4985 - Show all commits

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
{