From 2fb0c39b09110be4f5a88a8c8004f03fc257f612 Mon Sep 17 00:00:00 2001
From: 陈嘉乐 <cjl@hdlchina.com.cn>
Date: 星期三, 06 一月 2021 11:11:53 +0800
Subject: [PATCH] 2021-1-6-1

---
 ZigbeeApp/Shared/Phone/UserCenter/Device/PirSensor/PirSensorBindTargetSettionForm.cs |    8 +++++++-
 1 files changed, 7 insertions(+), 1 deletions(-)

diff --git a/ZigbeeApp/Shared/Phone/UserCenter/Device/PirSensor/PirSensorBindTargetSettionForm.cs b/ZigbeeApp/Shared/Phone/UserCenter/Device/PirSensor/PirSensorBindTargetSettionForm.cs
index 61e4bf4..49a9a16 100755
--- a/ZigbeeApp/Shared/Phone/UserCenter/Device/PirSensor/PirSensorBindTargetSettionForm.cs
+++ b/ZigbeeApp/Shared/Phone/UserCenter/Device/PirSensor/PirSensorBindTargetSettionForm.cs
@@ -542,7 +542,13 @@
 
             PickerView.ShowSecondary(listfirst, listSecond, (value1, value2) =>
              {
-                 btnTime.Text = listfirst[value1].TrimStart('0') + listSecond[value1][value2];
+                 string textValue = listSecond[value1][value2];
+                 if (value1 != 0)
+                 {
+                     textValue = listfirst[value1].TrimStart('0') + textValue;
+                 }
+                 btnTime.Text = textValue;
+
                  int minute = Convert.ToInt32(listfirst[value1].Substring(0, 2));
                  int second = Convert.ToInt32(listSecond[value1][value2].Substring(0, 2));
                  int delaySecond = minute * 60 + second;

--
Gitblit v1.8.0