Exemple #1
0
        protected override void _activate(MacroTriggerWithArguments triggerWithArguments)
        {
            object[] argumentObjects = triggerWithArguments.ArgumentObjects;
            Router   router          = argumentObjects[0] as Router;

            if (router == null)
            {
                return;
            }
            Router.CrosspointChangedDelegate routerCrosspointChangedHandler = (i, ov, nv) => {
                triggerWithArguments.Fire();
            };
            router.CrosspointChanged += routerCrosspointChangedHandler;
            ActivationData activationData = new ActivationData(router, routerCrosspointChangedHandler);

            triggerWithArguments.Activated(activationData);
        }
Exemple #2
0
 public ActivationData(Router router, Router.CrosspointChangedDelegate routerCrosspointChangedHandler)
 {
     Router = router;
     RouterCrosspointChangedHandler = routerCrosspointChangedHandler;
 }