From fba7be989c27154db963cfce1ddd7b01d71e8b21 Mon Sep 17 00:00:00 2001
From: mac <user@users-MacBook-Pro.local>
Date: 星期五, 20 十月 2023 14:21:12 +0800
Subject: [PATCH] 2023年10月20日14:20:17

---
 HDL_ON/UI/UI2/3-Intelligence/Automation/TargetDeviceFunList.cs |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/HDL_ON/UI/UI2/3-Intelligence/Automation/TargetDeviceFunList.cs b/HDL_ON/UI/UI2/3-Intelligence/Automation/TargetDeviceFunList.cs
index 8472433..1bdd1b3 100644
--- a/HDL_ON/UI/UI2/3-Intelligence/Automation/TargetDeviceFunList.cs
+++ b/HDL_ON/UI/UI2/3-Intelligence/Automation/TargetDeviceFunList.cs
@@ -1046,7 +1046,7 @@
             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;
@@ -1056,9 +1056,9 @@
                 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;
                 });
             };
 
@@ -1291,7 +1291,7 @@
             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);

--
Gitblit v1.8.0