Exemple #1
0
 public void Unregist(T eid, XTEventDelegate1 edlg)
 {
     if (this.m_events.ContainsKey(eid) && this.m_events[eid].Remove(edlg))
     {
         this.m_events.Remove(eid);
     }
 }
Exemple #2
0
 // ----------------------------------------------------------
 // public
 // ----------------------------------------------------------
 public void Regist(T eid, XTEventDelegate1 edlg)
 {
     if (!this.m_events.ContainsKey(eid))
     {
         this.m_events[eid] = new XTEventDelegates <T>(eid);
     }
     this.m_events[eid].Add(edlg);
 }