Пример #1
0
        //  private XSIG xsig;
        //  private CTimer myTimer;

        public ControlSystem()
            : base()
        {
            try
            {
                Thread.MaxNumberOfUserThreads = 100;


                //Subscribe to the controller events (System, Program, and Ethernet)
                CrestronEnvironment.SystemEventHandler        += new SystemEventHandler(ControlSystem_ControllerSystemEventHandler);
                CrestronEnvironment.ProgramStatusEventHandler += new ProgramStatusEventHandler(ControlSystem_ControllerProgramEventHandler);
                CrestronEnvironment.EthernetEventHandler      += new EthernetEventHandler(ControlSystem_ControllerEthernetEventHandler);

                lightSystem = new LightingFactory().createLightingSystem(this);

                lightSystem.Startup();
            }
            catch (Exception e)
            {
                ErrorLog.Error("Error in the constructor: {0}", e.StackTrace);
            }
        }
Пример #2
0
 public LightSource(ILightingSystem ls, string systemId)
 {
     LightingSystem = ls;
     SystemId       = systemId;
 }