Пример #1
0
 public void unBindHandler(WealthValueOnChangeEvent handler)
 {
     if (this.handlers.Contains(handler))
     {
         this.handlers.Remove(handler);
     }
 }
Пример #2
0
 public void bindHandler(WealthValueOnChangeEvent handler)
 {
     if (this.handlers == null)
     {
         this.handlers = new List<WealthValueOnChangeEvent>();
     }
     if (!this.handlers.Contains(handler))
     {
         this.handlers.Add(handler);
     }
 }