コード例 #1
0
 public override void DoEvent(int nEventID, AFIDataList valueList)
 {
     if (mhtEvent.ContainsKey(nEventID))
     {
         AFIEvent identEvent = (AFIEvent)mhtEvent[nEventID];
         identEvent.DoEvent(valueList);
     }
 }
コード例 #2
0
        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);
        }
コード例 #3
0
        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);
            }
        }