public static void Remove(FrameXMLEvents EventCode, WoWEventHandler handler) { if (_eventHandler.ContainsKey(EventCode)) { _eventHandler[EventCode].Remove(handler); } }
public static void Register(FrameXMLEvents EventCode, WoWEventHandler handler) { if (_eventHandler.ContainsKey(EventCode)) { _eventHandler[EventCode].Add(handler); } else { _eventHandler.Add(EventCode, new List <WoWEventHandler> { handler }); } }