Exemplo n.º 1
0
        public bool UnregisterAll(NotificationDelegate del)
        {
            bool removed = false;

            foreach (KeyValuePair <String, NotificationDelegateList> e in m_registerMap)
            {
                NotificationDelegateList list = e.Value;
                removed |= list.Remove(del);
            }
            return(removed);
        }
Exemplo n.º 2
0
        public bool Unregister(String name, NotificationDelegate del)
        {
            NotificationDelegateList list = FindList(name);

            if (list != null)
            {
                return(list.Remove(del));
            }

            return(false);
        }