| | |
| | | {
|
| | | cardContr = new Controls.DeviceFreshAirCardControl();
|
| | | }
|
| | | // PM2.5
|
| | | else if (device.Type == DeviceType.PMSensor)
|
| | | {
|
| | | cardContr = new Controls.DevicePmSensorCardControl();
|
| | | }
|
| | | //彩灯(调光器)
|
| | | else if (device.Type == DeviceType.DimmableLight)
|
| | | {
|
| | |
| | | this.ShowProgressBar();
|
| | |
|
| | | //切换住宅
|
| | | HdlResidenceLogic.Current.SwitchResidence(home.Id);
|
| | | var result = HdlResidenceLogic.Current.SwitchResidence(home.Id);
|
| | |
|
| | | HdlThreadLogic.Current.RunMain(() =>
|
| | | {
|
| | | //刷新界面
|
| | | this.ShowForm();
|
| | |
|
| | | if (result == true)
|
| | | {
|
| | | //刷新界面
|
| | | this.ShowForm();
|
| | | }
|
| | | this.CloseProgressBar();
|
| | | });
|
| | | });
|