Exemple #1
0
    public static bool TestEventTriggerAfterChangeValue(BoolState bs, bool newState, IEventRegister evnt)
    {
        bool triggered = false;

        evnt.Register(() => triggered = true);
        bs.Value = newState;
        return(triggered);
    }
Exemple #2
0
 public static void Register <T, K, J>(this IEventRegister <T, K, J> register, Action <T, K, J> act) => register.Register(new ActionEventCapsule <T, K, J>(act));
Exemple #3
0
 public static void Register(this IEventRegister register, Action act) => register.Register(new ActionEventCapsule(act));
Exemple #4
0
 public static void Register <T, J, K, W>(this IEventRegister <T, J, K, W> me, System.Action <T, J, K, W> callback)
 {
     me.Register(new DelegateEventListener <T, J, K, W>(callback));
 }
Exemple #5
0
 public static void Register(this IEventRegister me, System.Action callback)
 {
     me.Register(new DelegateEventListener(callback));
 }