void Scheduler_UserCallBack(ScheduledEvent SchEvent, ScheduledEventCommon.eCallbackReason type) { if (SchEvent.Name == "Relay 1") { CrestronConsole.PrintLine("{0} == Relay 1 Clicked", DateTime.Now.ToString()); RelayEvent(1); } if (SchEvent.Name == "Relay 2") { CrestronConsole.PrintLine("{0} == Relay 2 Clicked", DateTime.Now.ToString()); CrestronConsole.PrintLine("Snooze Result: {0}", SchEvent.Snooze(2).ToString()); RelayEvent(2); } }
void myEvent1_UserCallBack(ScheduledEvent SchEvent, ScheduledEventCommon.eCallbackReason type) { if (SchEvent.Name == "Relay 1") { CrestronConsole.PrintLine("Hitting Relay 1, {0}", DateTime.Now.ToString()); RelayEvent(1); } else if (SchEvent.Name == "Relay 2") { CrestronConsole.PrintLine("Hitting Relay 2, {0}", DateTime.Now.ToString()); CrestronConsole.PrintLine("Snooze Result: {0}", SchEvent.Snooze(2).ToString()); RelayEvent(2); } }