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 | 19 +++++++------------ 1 files changed, 7 insertions(+), 12 deletions(-) diff --git a/ZigbeeApp/Shared/Phone/UserCenter/HideOption/HideOptionDirectoryListForm.cs b/ZigbeeApp/Shared/Phone/UserCenter/HideOption/HideOptionDirectoryListForm.cs index 43f19bc..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,8 +63,8 @@ row1.AddBottomLine(); row1.ButtonClickEvent += (sender, e) => { - var form = new HideOptionFileListForm(); - form.AddForm(UserCenterLogic.CombinePath()); + var form = new HideOptionSearchAllFile(); + form.AddForm(Common.Config.Instance.FullPath); }; //鏌ョ湅鍏ㄩ儴鏂囦欢 @@ -84,12 +84,7 @@ private void AddRowControl(VerticalListControl listView, string directory, string directoryValue, bool addLine) { - string myPath = UserCenterLogic.CombinePath(DirNameResourse.LocalMemoryDirectory, directoryValue); - if (directoryValue == DirNameResourse.LocalMemoryDirectory) - { - myPath = UserCenterLogic.CombinePath(DirNameResourse.LocalMemoryDirectory); - } - if (System.IO.Directory.Exists(myPath) == false) + if (System.IO.Directory.Exists(directoryValue) == false) { return; } @@ -104,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