| | |
| | | case SPK.AvMusic: |
| | | { |
| | | #region 界面 |
| | | ///开关 |
| | | LogicView.FunTypeView switchVie = new LogicView.FunTypeView(); |
| | | switchVie.btnText.TextID = StringId.switchLogic; |
| | | fLayout.AddChidren(switchVie.FLayoutView()); |
| | | //提示语音 |
| | | LogicView.FunTypeView funTypeView = new LogicView.FunTypeView(); |
| | | funTypeView.frameLayout.Y = switchVie.frameLayout.Bottom; |
| | | funTypeView.btnText.TextID = StringId.tishiyin; |
| | | fLayout.AddChidren(funTypeView.FLayoutView()); |
| | | ///音量 |
| | |
| | | DelayView(fLayout, volView.frameLayout.Bottom); |
| | | #endregion |
| | | #region 点击事件 |
| | | ///开关点击事件 |
| | | switchVie.btnClick.MouseUpEventHandler += (sender, e) => |
| | | { |
| | | |
| | | SwitchViewMethod(device, switchVie.btnState, 2); |
| | | }; |
| | | ///提示语音点击事件 |
| | | funTypeView.btnClick.MouseUpEventHandler += (sender, e) => |
| | | { |
| | |
| | | if (edit) |
| | | { |
| | | //显示编辑之前的设备状态 |
| | | GetEditDeviceState(device, index, funTypeView.btnState, volView.btnState, null, null); |
| | | GetEditDeviceState(device, index, switchVie.btnState, funTypeView.btnState, volView.btnState, null); |
| | | } |
| | | |
| | | #endregion |