Esempio n. 1
0
 public static void RemoveServiceHandler(int stype, CtypeEventHandler handler)
 {
     if (HandlerDic.ContainsKey(stype))
     {
         HandlerDic[stype] -= handler;
     }
     else
     {
         HandlerDic.Remove(stype);
     }
 }
Esempio n. 2
0
 public void RegisterServiceHandler(int stype, CtypeEventHandler handler)
 {
     if (HandlerDic.ContainsKey(stype))
     {
         HandlerDic[stype] += handler;
     }
     else
     {
         HandlerDic.Add(stype, handler);
     }
 }