| | |
| | | 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 点击事件 |
| | | ///开关点击事件 |
| | |
| | | { |
| | | 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); |