From 23420922845c9e77019a55c3b3e3271eb1ec261e Mon Sep 17 00:00:00 2001 From: 黄学彪 <hxb@hdlchina.com.cn> Date: 星期一, 13 七月 2020 11:42:18 +0800 Subject: [PATCH] 新版本 --- ZigbeeApp/Shared/Phone/UserCenter/HideOption/HideOptionDirectoryListForm.cs | 14 ++++---------- 1 files changed, 4 insertions(+), 10 deletions(-) diff --git a/ZigbeeApp/Shared/Phone/UserCenter/HideOption/HideOptionDirectoryListForm.cs b/ZigbeeApp/Shared/Phone/UserCenter/HideOption/HideOptionDirectoryListForm.cs index 7999dcc..73f495e 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) @@ -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; } @@ -106,7 +100,7 @@ row1.ButtonClickEvent += (sender, e) => { var form = new HideOptionFileListForm(); - form.AddForm(myPath); + form.AddForm(directoryValue); }; } -- Gitblit v1.8.0