| | |
| | | LogicView.FunTypeView delayView = new LogicView.FunTypeView(); |
| | | delayView.frameLayout.Y = bottomY; |
| | | delayView.btnText.TextID = StringId.Delay; |
| | | delayView.btnState.Text = strdelay + "s"; |
| | | delayView.btnState.Text = LogicMethod.Current.getTimeStr(strdelay); |
| | | fLayout.AddChidren(delayView.FLayoutView()); |
| | | ///赋值对象 |
| | | this.btnDelay = delayView.btnState; |
| | |
| | | InpOrOutLogicMethod inpOrOutLogicMethod = new InpOrOutLogicMethod(); |
| | | inpOrOutLogicMethod.Delayed(this, strdelay, (value) => |
| | | { |
| | | selectedState = "delay_" + strdelay; |
| | | strdelay = value.ToString(); |
| | | delayView.btnState.Text = strdelay + "s"; |
| | | delayView.btnState.Text = LogicMethod.Current.getTimeStr(strdelay); |
| | | selectedState = "delay_" + strdelay; |
| | | }); |
| | | }; |
| | | |
| | |
| | | if (this.btnDelay != null) |
| | | { |
| | | ///延时显示文本 |
| | | this.btnDelay.Text = outputs.delay + "s"; |
| | | this.btnDelay.Text =LogicMethod.Current.getTimeStr(outputs.delay); |
| | | this.strdelay = outputs.delay; |
| | | } |
| | | InpOrOutLogicMethod.Current.EditDeviceState(device, dicList, button1, button2, button3, button4, attribute); |