Skip to content

Instantly share code, notes, and snippets.

View anpin's full-sized avatar
:shipit:
Working from home

Pavel Anpin anpin

:shipit:
Working from home
View GitHub Profile
using Crestron.SimplSharp;
using Crestron.SimplSharp.Scheduler;
namespace APES.SSharp.Light
{
public static partial class LightService
{
static ScheduledEventGroup _schedule = new ScheduledEventGroup("LightService");
static void ScheduleDuskOn(DateTime date)
{
string eventName = string.Format("dusk-{0}-{1}-{2}", date.Date, date.Month, date.Year);