| | |
| | | using static ZigBee.Device.Panel; |
| | | namespace Shared.Phone.UserCenter.DeviceBind |
| | | { |
| | | public class AddDevicePage : BindCommonLayout, ZigBee.Common.IStatus |
| | | public class AddDevicePage : BindCommonLayout |
| | | { |
| | | /// <summary> |
| | | /// 按键模式接收 |
| | | /// </summary> |
| | | /// <param name="common">Common.</param> |
| | | public void Changed(CommonDevice common) |
| | | { |
| | | Shared.Application.RunOnMainThread(() => |
| | | { |
| | | }); |
| | | } |
| | | |
| | | /// 构造函数 |
| | | /// </summary> |
| | | /// <param name="doorLock"></param> |
| | |
| | | TextColor = Shared.Common.ZigbeeColor.Current.TextBlack, |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | Tag = device.DeviceEpointName, |
| | | Text = Common.LocalDevice.Current.GetDeviceEpointName(device), |
| | | TextSize = 15, |
| | | }; |
| | | rowLayout.AddChidren(btnBindName); |
| | |
| | | btnBindName.MouseUpEventHandler += hander; |
| | | btnChoose.MouseUpEventHandler += hander; |
| | | |
| | | if (string.IsNullOrEmpty(device.DeviceEpointName)) |
| | | { |
| | | btnBindName.Text = device.DeviceAddr + "_" + device.DeviceEpoint; |
| | | } |
| | | else |
| | | { |
| | | btnBindName.Text = device.DeviceEpointName; |
| | | } |
| | | foreach (var bindedDev in targetList) |
| | | { |
| | | var id = device.DeviceAddr + device.DeviceEpoint; |
| | |
| | | rowFrameLayout.MouseUpEventHandler += hander; |
| | | btnMethodText.MouseUpEventHandler += hander; |
| | | } |
| | | } |
| | | |
| | | public void DeviceInfoChange(CommonDevice common, string typeTag) |
| | | { |
| | | } |
| | | |
| | | public void ChangedILogicStatus(ZigBee.Device.Logic logic) |
| | | { |
| | | } |
| | | |
| | | public void ChangedISceneStatus(Scene scene) |
| | | { |
| | | } |
| | | } |
| | | } |