| | |
| | | |
| | | //备注弹窗提示 |
| | | string msg = Language.StringByID(R.MyInternationalizationString.BindRemarkTip1).Replace("{0}", "\r\n"); |
| | | var alert = new Shared.Phone.UserCenter.ShowMsgControl(ShowMsgType.Confirm, msg, Language.StringByID(R.MyInternationalizationString.Iknown)); |
| | | var alert = new Shared.Phone.ShowMsgControl(ShowMsgType.Confirm, msg, Language.StringByID(R.MyInternationalizationString.Iknown)); |
| | | alert.Show(); |
| | | } |
| | | |
| | |
| | | X = devicePic.Right + Application.GetRealWidth(20), |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | TextSize = 15, |
| | | Text = Common.LocalDevice.Current.GetDeviceEpointName(device), |
| | | Text = HdlDeviceCommonLogic.Current.GetDeviceEpointName(device), |
| | | }; |
| | | rowLayout.AddChidren(btnBindName); |
| | | |
| | |
| | | { |
| | | line2.Visible = false; |
| | | } |
| | | if (Common.LocalDevice.Current.CheckDeviceIsOnline(device) == true) |
| | | if (HdlDeviceCommonLogic.Current.CheckDeviceIsOnline(device) == true) |
| | | { |
| | | btnBindName.TextColor = Shared.Common.ZigbeeColor.Current.TextBlack; |
| | | } |
| | |
| | | EventHandler<MouseEventArgs> hander = (sender, e) => |
| | | { |
| | | //目标备注处理 |
| | | var localName = System.Text.Encoding.UTF8.GetBytes(Common.LocalDevice.Current.GetDeviceEpointName(device)); |
| | | var localName = System.Text.Encoding.UTF8.GetBytes(HdlDeviceCommonLogic.Current.GetDeviceEpointName(device)); |
| | | if (localName.Length > 20) |
| | | { |
| | | new Tip() { MaxWidth = 150, Text = Language.StringByID(R.MyInternationalizationString.BindRemarkTip2), Direction = AMPopTipDirection.None, CloseTime = 1 }.Show(Common.CommonPage.Instance); |
| | |
| | | break; |
| | | case 3: |
| | | addSingleBindData.BindClusterList.Add(6); |
| | | var device = LocalDevice.Current.GetDevice(de.DeviceAddr, de.DeviceEpoint); |
| | | var device = HdlDeviceCommonLogic.Current.GetDevice(de.DeviceAddr, de.DeviceEpoint); |
| | | if (device != null) |
| | | { |
| | | if (device.Type == DeviceType.DimmableLight) |