| | |
| | | this.deviceEnumInfo = Common.LocalDevice.Current.GetMyDeviceEnumInfo(listNewDevice);
|
| | |
|
| | | //设置标题信息
|
| | | base.SetTitleText(Language.StringByID(R.MyInternationalizationString.uDeviceInfo));
|
| | | base.SetTitleText(Language.StringByID(R.MyInternationalizationString.uDeviceSettion));
|
| | |
|
| | | //初始化右上角菜单
|
| | | this.InitTopRightMenu();
|
| | |
| | | //针对单纯只有一个200端点的设备
|
| | | continue;
|
| | | }
|
| | | var room = Room.CurrentRoom.GetRoomByDevice(device);
|
| | | var room = HdlRoomLogic.Current.GetRoomByDevice(device);
|
| | | string mainKeys = LocalDevice.Current.GetDeviceMainKeys(device);
|
| | | if (room == null)
|
| | | {
|
| | | //这里有点特殊,如果回路没有设置有区域的时候,才设置
|
| | | listCheck.Add(mainKeys);
|
| | | Room.CurrentRoom.ChangedRoom(device, roomKeys);
|
| | | HdlRoomLogic.Current.ChangedRoom(device, roomKeys);
|
| | | }
|
| | | else if (listCheck.Contains(mainKeys) == true)
|
| | | {
|
| | | //如果这个回路之前都还没有区域,在本界面还没有关闭之前,可以无条件随便变更
|
| | | Room.CurrentRoom.ChangedRoom(device, roomKeys);
|
| | | HdlRoomLogic.Current.ChangedRoom(device, roomKeys);
|
| | | }
|
| | | }
|
| | | //保存设备房间索引
|