Example #1
0
 public static void SendEvent(EventTyp typ, object param)
 {
     foreach (Action <object> item in all[typ])
     {
         item(param);
     }
 }
Example #2
0
 public static void RemoveEvent(EventTyp typ, Action <object> action)
 {
     all[typ].Remove(action);
 }
Example #3
0
 public static void AddEvent(EventTyp typ, Action <object> action)
 {
     all[typ].Add(action);
 }