From 9a4b76398009cf76c508d61f7e48fb6f5cb7ac2d Mon Sep 17 00:00:00 2001 From: xm <1271024303@qq.com> Date: 星期二, 21 七月 2020 09:46:53 +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