public void RemoveEventTarget(IEAEventTarget pTarget) // Delete event target { if (pTarget == null) { return; } if (pTarget.GetTargetName() == "") { return; } m_oEventTargetTable.Remove(pTarget.GetTargetName()); }
public bool AddEventTarget(IEAEventTarget pTarget) // Add event target { if (pTarget == null) { return(false); } if (pTarget.GetTargetName() == "") { return(false); } IEAEventTarget pInfo = GetEventTarget(pTarget.GetTargetName()); if (pInfo != null) { // Cancel registration because it is registered return(false); } m_oEventTargetTable.Add(pTarget.GetTargetName(), pTarget); return(true); }