| | |
| | | case SPK.SensorHelp: |
| | | { |
| | | LogicView.FunTypeView view = new LogicView.FunTypeView(); |
| | | view.btnText.TextID = StringId.qiujiuandzhengchang; |
| | | view.btnText.TextID = StringId.qiujiu; |
| | | fLayout.AddChidren(view.FLayoutView()); |
| | | view.btnClick.MouseUpEventHandler += (sender, e) => |
| | | { |
| | | DeviceView(device, view.btnState, StringId.qiujiu, StringId.zhengchang ); |
| | | DeviceView(device, view.btnState, StringId.qiujiu, StringId.zhengchang,1); |
| | | }; |
| | | if (edit) |
| | | { |
| | |
| | | /// <param name="button">选中状态显示文本Btn控件</param> |
| | | /// <param name="btnText1">属性状态值文本1</param> |
| | | /// <param name="btnText2">属性状态值文本2</param> |
| | | /// <param name="viewCount">view数量</param> |
| | | /// <param name="viewCount">view数量,默认2个view</param> |
| | | private void DeviceView(Entity.Function device, Button button, int btnText1, int btnText2,int viewCount=2) |
| | | { |
| | | FrameLayout frame = new FrameLayout { BackgroundColor = CSS.CSS_Color.viewTrans60lucence }; |
| | |
| | | if (device.spk == SPK.SensorLight) |
| | | { |
| | | //照明传感器 |
| | | max =int.MaxValue; |
| | | max =1200; |
| | | } |
| | | |
| | | new LogicView.TipPopView { }.InputBox(textInt, stateValue, (value) => |