Пример #1
0
        public EventDescriptorCollection GetEvents(Attribute[] attributes)
        {
            EventDescriptorCollection events = this.GetEvents();

            if (attributes == null)
            {
                return(events);
            }
            return(events.Filter(attributes));
        }
Пример #2
0
        public EventDescriptorCollection GetEvents(Attribute[] attributes)
        {
            EventDescriptorCollection evs = GetEvents();

            if (attributes == null)
            {
                return(evs);
            }
            else
            {
                return(evs.Filter(attributes));
            }
        }