예제 #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);
 }
예제 #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);
 }