From c7df85937f73fb347ee0b19e9c052d2d00a6df6c Mon Sep 17 00:00:00 2001
From: 黄学彪 <hxb@hdlchina.com.cn>
Date: 星期五, 18 九月 2020 13:58:19 +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