| | |
| | | /// <param name="i_gateway">网关对象</param>
|
| | | public void InitControl(string i_caption, ZigBee.Device.ZbGateway i_gateway)
|
| | | {
|
| | | var room = HdlGatewayLogic.Current.GetRoomByGateway(i_gateway);
|
| | | var room = HdlRoomLogic.Current.GetRoomByGateway(i_gateway);
|
| | | this.DoInitControl(i_caption, room);
|
| | | }
|
| | |
|
| | |
| | | /// <param name="i_listDevice">设备对象</param>
|
| | | public void InitControl(string i_caption, List<ZigBee.Device.CommonDevice> i_listDevice)
|
| | | {
|
| | | var room = Common.LocalDevice.Current.GeteRealDeviceRoom(i_listDevice[0]);
|
| | | var room = HdlRoomLogic.Current.GeteRealDeviceRoom(i_listDevice[0]);
|
| | | this.DoInitControl(i_caption, room);
|
| | | }
|
| | |
|
| | |
| | | //右箭头
|
| | | this.AddRightArrow();
|
| | |
|
| | | this.ButtonClickEvent += (sender, e) =>
|
| | | //如果当前是展示模板,则需要处理
|
| | | if (Common.Config.Instance.Home.IsShowTemplate == false)
|
| | | {
|
| | | //区域选择
|
| | | this.ShowSelectRoom(btnTextView, i_caption);
|
| | | };
|
| | | this.ButtonClickEvent += (sender, e) =>
|
| | | {
|
| | | //区域选择
|
| | | this.ShowSelectRoom(btnTextView, i_caption);
|
| | | };
|
| | | }
|
| | | }
|
| | |
|
| | | #endregion
|
| | |
| | | txtView.Text = selectName;
|
| | | //调用回调函数
|
| | | this.SelectRoomEvent?.Invoke(RoomKey);
|
| | | //上传空间区域信息
|
| | | HdlRoomLogic.Current.SetRoomInfoToGateway();
|
| | | });
|
| | | if (result == false)
|
| | | {
|