示例#1
0
文件: lwf_movie.cs 项目: nask0/lwf
        public void RemoveEventHandler(string eventName, EventHandler eventHandler)
        {
            EventHandlerList list = m_eventHandlers[eventName];

            if (list == null)
            {
                return;
            }
            list.RemoveAll(h => h == eventHandler);
        }
示例#2
0
        public void RemoveEventHandler(int eventId, EventHandler eventHandler)
        {
            if (eventId < 0 || eventId >= m_data.events.Length)
            {
                return;
            }
            EventHandlerList list = m_eventHandlers[eventId];

            if (list == null)
            {
                return;
            }
            list.RemoveAll(h => h == eventHandler);
        }
示例#3
0
        public void RemoveEventHandler(string eventName, EventHandler eventHandler)
        {
            int eventId = SearchEventId(eventName);

            if (eventId >= 0 && eventId < m_data.events.Length)
            {
                RemoveEventHandler(eventId, eventHandler);
            }
            else
            {
                EventHandlerList list = m_genericEventHandlerDictionary[eventName];
                if (list == null)
                {
                    return;
                }
                list.RemoveAll(h => h == eventHandler);
            }
        }