| | |
| | | { |
| | | currentClusterID = 258; |
| | | } |
| | | currentKey.ReSave(); |
| | | |
| | | //读取按键当前绑定目标 |
| | | GetDeviceBindResponseAllData getBindList = null; |
| | | if (IsRead) |
| | |
| | | currentKey.currentKeySelectModeText = Language.StringByID(R.MyInternationalizationString.AddCurtain); |
| | | } |
| | | } |
| | | currentKey.ReSave(); |
| | | } |
| | | #endregion |
| | | Application.RunOnMainThread(() => |
| | |
| | | |
| | | var btnAddFrameLayout = new FrameLayout() |
| | | { |
| | | X = Application.GetRealWidth(913), |
| | | X = Application.GetRealWidth(888), |
| | | Width = Application.GetRealWidth(192), |
| | | }; |
| | | this.titleFrameLayout.AddChidren(btnAddFrameLayout); |
| | | |
| | | var btnBindAdd = new Button |
| | | { |
| | | X = Application.GetRealWidth(62), |
| | | Height = Application.GetRealHeight(72), |
| | | Width = Application.GetRealWidth(72), |
| | | UnSelectedImagePath = "BindPic/BindAdd.png", |
| | |
| | | devicePic.Width = Application.GetRealWidth(110); |
| | | devicePic.Text = ""; |
| | | } |
| | | if (tempDev.DeviceEpointName == "") |
| | | if (string.IsNullOrEmpty(tempDev.DeviceEpointName)) |
| | | { |
| | | btnBindNameText = tempDev.DeviceEpoint + Language.StringByID(R.MyInternationalizationString.uDeviceCircuit); |
| | | } |
| | |
| | | modeRowLayout.BackgroundColor = ZigbeeColor.Current.XMWhite; |
| | | midVerticalRefreshLayout.AddChidrenRow(modeRowLayout); |
| | | modeRowLayout.frameTable.UseClickStatu = false; |
| | | modeRowLayout.frameTable.AddLeftCaption(Language.StringByID(R.MyInternationalizationString.keyMode), 500); |
| | | modeRowLayout.frameTable.AddLeftCaption(Language.StringByID(R.MyInternationalizationString.keyMode), 400); |
| | | var btnKeyModeTipText = ""; |
| | | #region 当前模式文本显示 |
| | | switch (currentKey.panelMode) |
| | |
| | | break; |
| | | } |
| | | #endregion |
| | | modeRowLayout.frameTable.AddMostRightView(btnKeyModeTipText, 500); |
| | | modeRowLayout.frameTable.AddMostRightView(btnKeyModeTipText, 800); |
| | | modeRowLayout.frameTable.AddBottomLine(); |
| | | var btnDel = modeRowLayout.AddDeleteControl(); |
| | | //一键清除按键事件 |