HDL Home App 第二版本 旧平台金堂用 正在使用
陈嘉乐
2020-05-06 6817ec660fcf032ed94a4197b145ad1e96c2aeed
ZigbeeApp/Shared/Phone/Device/Logic/Method.cs
@@ -702,7 +702,11 @@
                    Common.Logic.CurrentLogic.LogicIsCustomPushText = 0;
                    pushview.lineBtn.BackgroundColor = ZigbeeColor.Current.LogicBlankBackgroundColor;
                }
                if (!Config.Instance.Home.IsVirtually)
                {
                Send.Zj(LogicView.IfString.Tag, Common.Logic.CurrentLogic);
                }
            };
            if (Common.Logic.CurrentLogic.LogicIsCustomPushText == 0)
@@ -759,6 +763,15 @@
            bool succeed = false;
            //判断是新添加逻辑(默认0)还是修改逻辑
            CommonPage.Loading.Start();
            if (Config.Instance.Home.IsVirtually)
            {
                Send.Zj(LogicView.IfString.Tag, Common.Logic.CurrentLogic);
                //自动化逻辑列表
                Common.Logic.LogicList.Add(CurrentLogic);
            }
            else
            {
            if (CurrentLogic.LogicId == 0)
            {
                //发送添加逻辑命令
@@ -797,6 +810,7 @@
                //编辑默认成功(不考虑网络情况);
                succeed = true;
            }
            }
            CommonPage.Loading.Hide();
            if (!succeed)//succeed标记是添加成功还是失败
@@ -831,7 +845,7 @@
                var soneLogicList = new SoneLogicList();
                UserView.HomePage.Instance.AddChidren(soneLogicList);
                UserView.HomePage.Instance.PageIndex += 1;
                soneLogicList.Show(()=> { },false);
                soneLogicList.Show();
            }
        }