陈嘉乐
2021-03-24 334fa3f807b208335305889f0d5112fcd1f77bfb
HDL_ON/UI/UI2/4-PersonalCenter/PirDevice/AddButton.cs
@@ -130,13 +130,8 @@
                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)
                        {
                            //休眠是为显示引导界面
@@ -157,7 +152,7 @@
                                var view = MainPage.BasePageView.GetChildren(i);
                                if (view.GetType() == typeof(AddControl))
                                {
                                    //new TipPopView().FlashingBox(Language.StringByID(StringId.tianjiachenggong));
                                //找到移除
                                    view.RemoveFromParent();
                                }
@@ -176,16 +171,7 @@
                        }
                    }
                    else
                    {
                        Method method = new Method();
                        method.ErrorShow(responsePackNew, "");
                    }
                });
            };
        }