From f14dcfd967404e197e7ec995ca8d6f2b090d3b7d Mon Sep 17 00:00:00 2001
From: xm <1271024303@qq.com>
Date: 星期五, 11 九月 2020 09:16:59 +0800
Subject: [PATCH] 优化多功能面板:绑定温湿度传感器目标,和设备列表回路显示。优化数据矫正功能温湿度度不设置的情况。优化门锁时间设置最后一天和最后最后一个月的时间显示等 细节

---
 ZigbeeApp/Shared/Phone/UserCenter/HideOption/HideOptionDirectoryListForm.cs |   18 ++++++------------
 1 files changed, 6 insertions(+), 12 deletions(-)

diff --git a/ZigbeeApp/Shared/Phone/UserCenter/HideOption/HideOptionDirectoryListForm.cs b/ZigbeeApp/Shared/Phone/UserCenter/HideOption/HideOptionDirectoryListForm.cs
index 7999dcc..15592dc 100755
--- a/ZigbeeApp/Shared/Phone/UserCenter/HideOption/HideOptionDirectoryListForm.cs
+++ b/ZigbeeApp/Shared/Phone/UserCenter/HideOption/HideOptionDirectoryListForm.cs
@@ -39,9 +39,9 @@
 
             Type type = typeof(DirNameResourse);
 
-            var PropertyList = type.GetFields();
+            var PropertyList = type.GetProperties();
 
-            var listFile = new List<System.Reflection.FieldInfo>();
+            var listFile = new List<System.Reflection.PropertyInfo>();
             foreach (var item in PropertyList)
             {
                 if (item.Name.EndsWith("Directory") == true)
@@ -63,7 +63,7 @@
             row1.AddBottomLine();
             row1.ButtonClickEvent += (sender, e) =>
             {
-                var form = new HideOptionFileListForm();
+                var form = new HideOptionSearchAllFile();
                 form.AddForm(Common.Config.Instance.FullPath);
             };
 
@@ -84,13 +84,7 @@
 
         private void AddRowControl(VerticalListControl listView, string directory, string directoryValue, bool addLine)
         {
-            string localDir = DirNameResourse.LocalMemoryDirectory;
-            string myPath = System.IO.Path.Combine(localDir, directoryValue);
-            if (localDir.EndsWith(directoryValue) == true)
-            {
-                myPath = localDir;
-            }
-            if (System.IO.Directory.Exists(myPath) == false)
+            if (System.IO.Directory.Exists(directoryValue) == false)
             {
                 return;
             }
@@ -105,8 +99,8 @@
 
             row1.ButtonClickEvent += (sender, e) =>
             {
-                var form = new HideOptionFileListForm();
-                form.AddForm(myPath);
+                var form = new HideOptionSearchAllFile();
+                form.AddForm(directoryValue);
             };
         }
 

--
Gitblit v1.8.0