public override void DoEvent(int nEventID, AFIDataList valueList) { if (mhtEvent.ContainsKey(nEventID)) { AFIEvent identEvent = (AFIEvent)mhtEvent[nEventID]; identEvent.DoEvent(valueList); } }
public override void RegisterCallback(int nEventID, AFIEvent.EventHandler handler, AFIDataList valueList) { if (!mhtEvent.ContainsKey(nEventID)) { mhtEvent.Add(nEventID, new AFCEvent(mSelf, nEventID, valueList)); } AFIEvent identEvent = (AFIEvent)mhtEvent[nEventID]; identEvent.RegisterCallback(handler); }
public override void RemoveCallback(int nEventID, AFIEvent.EventHandler handler, AFIDataList valueList) { if (!mhtEvent.ContainsKey(nEventID)) { return; } AFIEvent identEvent = (AFIEvent)mhtEvent[nEventID]; if (null != identEvent) { identEvent.RemoveCallback(handler); } }