private void init() { CP3 = new CP3Smart(this._controlSystem); light = new ILiveSmartLight(this._controlSystem); CP3.RegisterDevices(); light.RegisterDevice(); }
private void Init() { smartExec = new CP3Smart(this._controlSystem); _lightExec = new ILiveLight(this._controlSystem); _lightExec.RegisterDevices(); //注册灯光模块 // Queue<Thread> dd = null; smartExec.RegisterDevices(); //注册快思聪模块 //this._music = new MusicAPI(); this._security = new SecurityAPI(smartExec); this._security.SetYelaPressEvent(this.YelaPress); this._movie = new MovieAPI(smartExec); this._clinate = new ClinateAPI(smartExec); // this._sms = new SMSAPI(smartExec.comSMS); this._sms = new ALiYunSMS(); }