From 2450c12c825ad4d78d1572da2fa421706db2df2f Mon Sep 17 00:00:00 2001
From: 黄学彪 <hxb@hdlchina.com.cn>
Date: 星期四, 18 六月 2020 16:01:14 +0800
Subject: [PATCH] 新代码

---
 ZigbeeApp/Shared/Phone/Device/Logic/TemplatePage.cs |   14 ++++++++------
 1 files changed, 8 insertions(+), 6 deletions(-)

diff --git a/ZigbeeApp/Shared/Phone/Device/Logic/TemplatePage.cs b/ZigbeeApp/Shared/Phone/Device/Logic/TemplatePage.cs
index 4e7e1b2..2d5b82d 100755
--- a/ZigbeeApp/Shared/Phone/Device/Logic/TemplatePage.cs
+++ b/ZigbeeApp/Shared/Phone/Device/Logic/TemplatePage.cs
@@ -47,7 +47,7 @@
             var middle = new VerticalScrolViewLayout
             {
                 Y = view.topRowLayout.Bottom,
-                Height = Application.GetRealHeight(1920 - 184 - 180),
+                Height = Application.GetRealHeight(Method.H - 184 - 180),
                 BackgroundColor = ZigbeeColor.Current.LogicMiddleBackgroundColor,
             };
             this.AddChidren(middle);
@@ -229,11 +229,8 @@
                                             {
                                                 case 13:
                                                     {
-                                                        if (intvalue == "1")
-                                                        {
-                                                            selecteddevice.selecetddevicestateBtn.TextID = MyInternationalizationString.someone;
-                                                        }
-                                                        else
+
+                                                        if (conditions.ContainsKey("IgnoreTime"))
                                                         {
                                                             int minute = int.Parse(conditions["IgnoreTime"]) / 60;
                                                             int second = int.Parse(conditions["IgnoreTime"]) % 60;
@@ -257,6 +254,11 @@
 
                                                             }
                                                         }
+                                                        else
+                                                        {
+                                                            selecteddevice.selecetddevicestateBtn.TextID = MyInternationalizationString.someone;
+                                                        }
+
                                                     }
                                                     break;
                                             }

--
Gitblit v1.8.0