| | |
| | | buttonObj.key = "key" + control.status.Count.ToString(); |
| | | buttonObj.value = texts; |
| | | |
| | | PirSend.CodeStudy(control.deviceId, buttonObj, (responsePackNew) => |
| | | PirSend.CodeStudy(control, buttonObj, (mqttdate) => |
| | | { |
| | | if (responsePackNew != null && responsePackNew.Code == "0" && responsePackNew.Data.ToString() != "") |
| | | { |
| | | Method method = new Method(); |
| | | Method.buttondata = ""; |
| | | var mqttdate = method.MqttDate("按键", control.sid, 25); |
| | | if (mqttdate != null) |
| | | { |
| | | //休眠是为显示引导界面 |
| | |
| | | var view = MainPage.BasePageView.GetChildren(i); |
| | | if (view.GetType() == typeof(AddControl)) |
| | | { |
| | | //new TipPopView().FlashingBox(Language.StringByID(StringId.tianjiachenggong)); |
| | | //找到移除 |
| | | view.RemoveFromParent(); |
| | | } |
| | | |
| | |
| | | |
| | | } |
| | | |
| | | } |
| | | else |
| | | { |
| | | Method method = new Method(); |
| | | method.ErrorShow(responsePackNew, ""); |
| | | } |
| | | |
| | | }); |
| | | |
| | | |
| | | }; |
| | | |
| | | } |