-
Notifications
You must be signed in to change notification settings - Fork 1
/
AFCLogicEvent.cs
48 lines (41 loc) · 1.16 KB
/
AFCLogicEvent.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
using System;
using System.Linq;
using System.Text;
using System.Collections;
using System.Collections.Generic;
namespace AFCoreEx
{
public class AFCLogicEvent : AFILogicEvent
{
public AFCLogicEvent()
{
}
#region Instance
private static AFCLogicEvent _Instance = null;
public static AFCLogicEvent Instance
{
get
{
if (_Instance == null)
{
_Instance = new AFCLogicEvent();
}
return _Instance;
}
}
#endregion
public override void RegisterCallback(int nEventID, AFIEvent.EventHandler handler, AFIDataList valueList)
{
mxEventManager.RegisterCallback(nEventID, handler, valueList);
}
public override void RemoveCallback(int nEventID, AFIEvent.EventHandler handler, AFIDataList valueList)
{
mxEventManager.RemoveCallback(nEventID, handler, valueList);
}
public override void DoEvent(int nEventID, AFIDataList valueList)
{
mxEventManager.DoEvent(nEventID, valueList);
}
AFIEventManager mxEventManager = new AFCEventManager(new AFIDENTID());
}
}