Beispiel #1
0
 /// <summary>
 /// 增加句柄
 /// </summary>
 /// <param name="define"></param>
 /// <param name="handler"></param>
 protected void AddHandler(int define, HandlerBase handler)
 {
     if (this.m_mapHandlers.ContainsKey((int)define))
     {
         //Error;
         return;
     }
     this.m_mapHandlers.Add((int)define, handler);
 }
Beispiel #2
0
 /// <summary>
 /// 增加句柄
 /// </summary>
 /// <param name="define"></param>
 /// <param name="handler"></param>
 protected void AddHandler(int define, HandlerBase handler)
 {
     if (this.m_mapHandlers.ContainsKey((int)define))
     {
         //Error;
         return;
     }
     this.m_mapHandlers.Add((int)define, handler);
 }