old mode 100755
new mode 100644
| | |
| | | btnPosition.ButtonClickEvent += (sender, e) =>
|
| | | {
|
| | | //定位
|
| | | Common.LocalDevice.Current.SetFixedPositionCommand(listdevice[0]);
|
| | | Common.LocalDevice.Current.SetFixedPositionCommand(listdevice[0], true); |
| | | };
|
| | | }
|
| | |
|
| | |
| | | var form = new DeviceMacInfoEditorForm();
|
| | | form.AddForm(device.DeviceAddr);
|
| | | }
|
| | | else if (deviceEnumInfo.BeloneType == DeviceBeloneType.A晾衣架) |
| | | { |
| | | var form = new DeviceMacInfoEditorForm(); |
| | | form.AddForm(device.DeviceAddr); |
| | | } |
| | | else if (deviceEnumInfo.BeloneType == DeviceBeloneType.A空气质量) |
| | | { |
| | | var form = new DeviceMacInfoEditorForm(); |
| | | form.AddForm(device.DeviceAddr); |
| | | } |
| | | else if (deviceEnumInfo.BeloneType == DeviceBeloneType.A窗帘)
|
| | | {
|
| | | var form = new DeviceMacInfoEditorForm();
|
| | |
| | | }
|
| | | //如果是在线的
|
| | | var nowGateway = HdlGatewayLogic.Current.GetLocalGateway(GatewayResourse.NowSelectGatewayId);
|
| | | if (HdlGatewayLogic.Current.CheckGatewayOnlineByFlag(nowGateway) == true)
|
| | | if (HdlGatewayLogic.Current.CheckGatewayOnlineByMemory(nowGateway) == true) |
| | | {
|
| | | //检测广播到的这个网关是否拥有住宅ID
|
| | | ZbGateway realWay = null;
|
| | |
| | | }
|
| | |
|
| | | //获取全部设备
|
| | | int result = LocalDevice.Current.SetDeviceToMemmoryByGateway(nowGateway, false);
|
| | | int result = LocalDevice.Current.SetDeviceToMemmoryByGateway(nowGateway.GwId, false); |
| | | if (this.Parent == null)
|
| | | {
|
| | | return;
|
| | |
| | | {
|
| | | if (this.gatewayViewRow != null && this.gatewayViewRow.zbGatewayId == selectGwId)
|
| | | {
|
| | | bool online = HdlGatewayLogic.Current.CheckGatewayOnlineByFlag(zbGateway);
|
| | | bool online = HdlGatewayLogic.Current.CheckGatewayOnlineByMemory(zbGateway); |
| | | //刷新控件在线状态
|
| | | this.gatewayViewRow?.RefreshOnlineStatu();
|
| | | //根据网关在线状态刷新设备在线状态
|
| | |
| | | {
|
| | | btnName.Text = HdlGatewayLogic.Current.GetGatewayName(zbway);
|
| | | //在线状态
|
| | | this.isOnline = HdlGatewayLogic.Current.CheckGatewayOnlineByFlag(zbway);
|
| | | this.isOnline = HdlGatewayLogic.Current.CheckGatewayOnlineByMemory(zbway); |
| | | if (this.isOnline == false)
|
| | | {
|
| | | btnName.TextColor = UserCenterColor.Current.TextGrayColor1;
|
| | |
| | | return;
|
| | | }
|
| | | //在线状态
|
| | | bool statu = HdlGatewayLogic.Current.CheckGatewayOnlineByFlag(zbway);
|
| | | bool statu = HdlGatewayLogic.Current.CheckGatewayOnlineByMemory(zbway); |
| | | if (this.isOnline != statu)
|
| | | {
|
| | | this.isOnline = statu;
|
| | |
| | | btnName.Height = Application.GetRealHeight(60);
|
| | | btnName.TextSize = 15;
|
| | | btnName.Y = Application.GetRealHeight(57);
|
| | | btnName.Text = "小度小度";
|
| | | btnName.Text = "智能音箱"; |
| | |
|
| | | this.AddRightArrow();
|
| | | this.AddMostRightView("", 300, false).Name = "smartSoundLayout";
|