| | |
| | | this.frameTable.RemoveAll();
|
| | | HdlThreadLogic.Current.RunMainInThread(() =>
|
| | | {
|
| | | if (lookRoom.SceneUIList.Count == 0)
|
| | | if (lookRoom.ListSceneId.Count == 0)
|
| | | {
|
| | | //还没有添加场景哦
|
| | | this.ShowNotDataImage(frameTable, Language.StringByID(R.MyInternationalizationString.uDoNotHadAddScenceMsg));
|
| | |
| | | listView.Height = frameTable.Height;
|
| | | frameTable.AddChidren(listView);
|
| | |
|
| | | foreach (var data in lookRoom.SceneUIList)
|
| | | foreach (var dataId in lookRoom.ListSceneId)
|
| | | {
|
| | | var data = HdlSceneLogic.Current.GetSceneUIBySceneId(dataId);
|
| | | if (data == null)
|
| | | {
|
| | | continue;
|
| | | }
|
| | | //场景控件
|
| | | var frameContr = new ScenePictrueControl();
|
| | | listView.AddChidrenFrame(frameContr);
|
| | |
| | | private Dictionary<int, DeviceRowInfo> GetAllGroupDevice()
|
| | | {
|
| | | //全部的设备
|
| | | var listDevice = lookRoom.GetRoomListDevice();
|
| | | var listDevice = HdlRoomLogic.Current.GetRoomListDevice(lookRoom);
|
| | | var dic = new Dictionary<int, DeviceRowInfo>();
|
| | | foreach (var device in listDevice)
|
| | | {
|