Exemple #1
0
    public void RemoveEventTarget(IEAEventTarget pTarget) // Delete event target
    {
        if (pTarget == null)
        {
            return;
        }

        if (pTarget.GetTargetName() == "")
        {
            return;
        }

        m_oEventTargetTable.Remove(pTarget.GetTargetName());
    }
Exemple #2
0
    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);
    }