Исправление
This commit is contained in:
parent
3cee8a2eab
commit
5df31a4985
@ -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
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user