| | |
| | | /// <summary> |
| | | /// 按键管理 |
| | | /// </summary> |
| | | public class BindTargetsPage : BindCommonLayout, ZigBee.Common.IStatus |
| | | public class BindTargetsPage : BindCommonLayout |
| | | { |
| | | /// <summary> |
| | | /// 按键模式接收 |
| | | /// </summary> |
| | | /// <param name="common">Common.</param> |
| | | public void Changed(CommonDevice common) |
| | | { |
| | | Shared.Application.RunOnMainThread(() => |
| | | { |
| | | }); |
| | | } |
| | | |
| | | /// 构造函数 |
| | | /// </summary> |
| | | /// <param name="doorLock"></param> |
| | |
| | | //获取本地场景列表 |
| | | scList = HdlSceneLogic.Current.GetAllRoomSceneList(); |
| | | //获取网关场景表 |
| | | if (gwScenesList.Count == 0) |
| | | { |
| | | var gwSceneObj = await currentKey.GetSceneInfoAsync(); |
| | | if (gwSceneObj != null && gwSceneObj.getSceneInfo != null) |
| | | { |
| | | gwScenesList = gwSceneObj.getSceneInfo.ScenesList; |
| | | } |
| | | } |
| | | |
| | | //动态获取按键支持的大类 |
| | | typeModeList = await GetTypeMode(); |
| | | #region 读取面板当前模式 |
| | |
| | | Application.RunOnMainThread(() => |
| | | { |
| | | CommonPage.Loading.Hide(); |
| | | midVerticalRefreshLayout.EndHeaderRefreshing(); |
| | | new Tip() { MaxWidth = 150, Text = Language.StringByID(R.MyInternationalizationString.GwResponseOvertime), Direction = AMPopTipDirection.None, CloseTime = 1 }.Show(Common.CommonPage.Instance); |
| | | return; |
| | | }); |
| | |
| | | { |
| | | RefreshList(); |
| | | CommonPage.Loading.Hide(); |
| | | midVerticalRefreshLayout.EndHeaderRefreshing(); |
| | | }); |
| | | } |
| | | else |
| | |
| | | Application.RunOnMainThread(() => |
| | | { |
| | | CommonPage.Loading.Hide(); |
| | | midVerticalRefreshLayout.EndHeaderRefreshing(); |
| | | new Tip() { MaxWidth = 150, Text = Language.StringByID(R.MyInternationalizationString.GwResponseOvertime), Direction = AMPopTipDirection.None, CloseTime = 1 }.Show(Common.CommonPage.Instance); |
| | | }); |
| | | return; |
| | |
| | | midVerticalRefreshLayout.BeginHeaderRefreshing(); |
| | | IsRead = true; |
| | | InitListInfo(); |
| | | midVerticalRefreshLayout.EndHeaderRefreshing(); |
| | | }; |
| | | |
| | | BlankPicUI(); |
| | |
| | | midVerticalRefreshLayout.AddChidrenRow(rowLayout); |
| | | rowLayout.frameTable.UseClickStatu = false; |
| | | var devicePic = rowLayout.frameTable.AddLeftIcon(); |
| | | devicePic.Y = Application.GetRealHeight(49); |
| | | devicePic.UnSelectedImagePath = "DoorLock/DoorLockUserPic.png"; |
| | | |
| | | #region 绑定数据处理 |
| | |
| | | }
|
| | |
|
| | | devicePic.UnSelectedImagePath = tempDev.IconPath;
|
| | | devicePic.Width = Application.GetRealWidth(110);
|
| | | devicePic.Text = ""; |
| | | |
| | | if (string.IsNullOrEmpty(tempDev.DeviceEpointName)) |
| | |
| | | else |
| | | { |
| | | btnBindNameText = bindDevice.BindMacAddr + "_" + bindDevice.BindEpoint; |
| | | devicePic.Width = Application.GetMinRealAverage(200); |
| | | devicePic.TextAlignment = TextAlignment.CenterLeft; |
| | | devicePic.TextColor = UserCenterColor.Current.Gray; |
| | | devicePic.Text = Language.StringByID(R.MyInternationalizationString.uOffLine); |
| | |
| | | scList.Clear(); |
| | | base.RemoveFromParent(); |
| | | } |
| | | |
| | | public void DeviceInfoChange(CommonDevice common, string typeTag) |
| | | { |
| | | } |
| | | |
| | | public void ChangedILogicStatus(ZigBee.Device.Logic logic) |
| | | { |
| | | } |
| | | |
| | | public void ChangedISceneStatus(Scene scene) |
| | | { |
| | | } |
| | | } |
| | | } |
| | | |