Example #1
0
 public void RemoveAction <A, B, C>(string eventName, DEventMethod <A, B, C> method)
 {
     Remove(new MethodInfoObject {
         Target = method.Target, Method = method.Method
     }, eventName);
 }
Example #2
0
 public void RemoveAction <A, B, C>(DEventMethod <A, B, C> method)
 {
     Remove(new MethodInfoObject {
         Target = method.Target, Method = method.Method
     });
 }
Example #3
0
 public void AddAction <A, B, C, D, E, F>(string eventName, DEventMethod <A, B, C, D, E, F> method)
 {
     Add(new MethodInfoObject {
         Target = method.Target, Method = method.Method
     }, eventName);
 }
Example #4
0
 /// <summary>
 /// Добавить кастомный метод
 /// </summary>
 /// <param name="method">Слушатель</param>
 public void AddAction <A, B, C, D, E, F>(DEventMethod <A, B, C, D, E, F> method)
 {
     Add(new MethodInfoObject {
         Target = method.Target, Method = method.Method
     });
 }
Example #5
0
 /// <summary>
 /// Добавить кастомный метод
 /// </summary>
 /// <param name="method">Слушатель</param>
 public void AddAction <T>(DEventMethod <T> method)
 {
     Add(new MethodInfoObject {
         Target = method.Target, Method = method.Method
     });
 }
Example #6
0
 public void AddAction(string eventName, DEventMethod method)
 {
     Add(new MethodInfoObject {
         Target = method.Target, Method = method.Method
     }, eventName);
 }