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); } }
public RefEventUISort(IEventUI ui, EventUIAttribute attribute) { this.ui = ui; this.attribute = attribute; }