hxb
2022-09-22 39cf2411b59772d56ee731f229f09ff472889bad
HDL_ON/UI/UI2/3-Intelligence/Automation/Set.cs
@@ -57,7 +57,8 @@
            EventHandler<MouseEventArgs> editClick = (sender, e) =>
            {
                List<string> list = new List<string>();
                foreach (var logic in Logic.LogicList) {
                foreach (var logic in Logic.LogicList)
                {
                    list.Add(logic.name);
                }
@@ -112,8 +113,7 @@
                        try
                        {
                            //发送删除逻辑命令;
                            responsePackNew = Send.DelLogic(Logic.currlogic);
                            responsePackNew = Send.Current.DelLogic(Logic.currlogic, true);
                        }
                        catch { }
                        finally
@@ -121,20 +121,12 @@
                            Application.RunOnMainThread(() =>
                            {
                                loading.Hide();
                                if (responsePackNew != null && responsePackNew.Code == "0")
                                if (responsePackNew != null)
                                {
                                    LogicMethod.CurrLogicMethod.RemoveAllView();
                                    LogicMethod.Current.RemoveAllView();
                                    Logic.LogicList.Remove(Logic.currlogic);
                                    MainView.MainShow();
                                    //发送删除逻辑命令;
                                }
                                else if (responsePackNew != null && responsePackNew.Code == "14005")
                                {
                                    new LogicView.TipPopView().FlashingBox(Language.StringByID(StringId.gatewayNotOnline));
                                }
                                else
                                {
                                    new LogicView.TipPopView().FlashingBox(Language.StringByID(StringId.delFail));
                                }
                            });
                        }