/// <summary> /// 触发事件 /// </summary> /// <param name="eventEnumType"></param> /// <param name="eventName"></param> public static void TriggerEvent(GenericEventEnumType eventEnumType, string eventName, EventParamete sender) { switch (eventEnumType) { case GenericEventEnumType.Generic: if (genericEvent != null) { genericEvent.TriggerEvent(eventName, sender); } break; case GenericEventEnumType.Message: if (messageEvent != null) { messageEvent.TriggerEvent(eventName, sender); } break; default: break; } }