xm
2020-07-21 9a4b76398009cf76c508d61f7e48fb6f5cb7ac2d
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)
@@ -60,11 +60,23 @@
            listView.AddChidren(row1);
            row1.AddLeftCaption("根目录文件", 800);
            row1.AddRightArrow();
            row1.AddBottomLine();
            row1.ButtonClickEvent += (sender, e) =>
            {
                var form = new HideOptionFileListForm();
                form.AddForm(UserCenterLogic.CombinePath());
                form.AddForm(Common.Config.Instance.FullPath);
            };
            //查看全部文件
            var row2 = new FrameRowControl(listView.rowSpace / 2);
            listView.AddChidren(row2);
            row2.AddLeftCaption("查看全部文件", 800);
            row2.AddRightArrow();
            row2.ButtonClickEvent += (sender, e) =>
            {
                var form = new HideOptionSearchAllFile();
                form.AddForm(Shared.IO.FileUtils.RootPath);
            };
            listView.AdjustRealHeight(Application.GetRealHeight(23));
@@ -72,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;
            }
@@ -93,7 +100,7 @@
            row1.ButtonClickEvent += (sender, e) =>
            {
                var form = new HideOptionFileListForm();
                form.AddForm(myPath);
                form.AddForm(directoryValue);
            };
        }