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