陈嘉乐
2020-12-04 6992dfd5cd06481ee251e72b6d28e0221ea9276b
HDL_ON/UI/UI2/3-Intelligence/Automation/TargetDeviceFunList.cs
@@ -81,6 +81,12 @@
                        LogicView.FunTypeView curtainSwitchView = new LogicView.FunTypeView();
                        curtainSwitchView.btnText.TextID = StringId.switchLogic;
                        fLayout.AddChidren(curtainSwitchView.FLayoutView());
                        ///模式
                        LogicView.FunTypeView acModehView = new LogicView.FunTypeView();
                        acModehView.frameLayout.Y = curtainSwitchView.frameLayout.Bottom;
                        acModehView.btnText.TextID = StringId.switchLogic;
                        fLayout.AddChidren(acModehView.FLayoutView());
                        #endregion
                        #region 点击事件
                        ///开关点击事件
@@ -88,6 +94,15 @@
                        {
                            SwitchViewMethod(device, curtainSwitchView.btnState, 2);
                        };
                        acModehView.btnClick.MouseUpEventHandler += (sender, e) =>
                        {
                            FrameLayout frame = new FrameLayout
                            {
                                BackgroundColor = CSS.CSS_Color.viewTrans60lucence,
                            };
                            this.AddChidren(frame);
                        };
                        if (edit)
                        {
                            GetEditState(device, index, curtainSwitchView.btnState, null, null, null);