public void AddEvent(string eventName, IActionEventHandler eventHandler) { if (!_events.TryGetValue(eventName, out var list)) { list = new List <IActionEventHandler>(); _events.Add(eventName, list); } list.Add(eventHandler); }
public void AddEventHandler(IActionEventHandler handler) { _eventHandlers.Add(handler); }