示例#1
0
        public void updateEventConnectionUI()
        {
            eventMaping.Clear();
            Type[] types = ReflectionTools.GetDerivedTypesOf(typeof(IEventUI));
            foreach (Type typeUI in types)
            {
                object[] eventUIAttributes = typeUI.GetCustomAttributes(typeof(EventUIAttribute), false);
                if (eventUIAttributes == null || eventUIAttributes.Length == 0)
                {
                    continue;
                }
                EventUIAttribute eventUIAttribute = (EventUIAttribute)eventUIAttributes[0];

                eventMaping.Add(eventUIAttribute.type, typeUI);
            }
        }
示例#2
0
 public RefEventUISort(IEventUI ui, EventUIAttribute attribute)
 {
     this.ui        = ui;
     this.attribute = attribute;
 }