黄学彪
2020-12-17 9f326f4000847e6167d8166fa2f6a66f53cb3734
ZigbeeApp/Shared/Phone/UserCenter/HideOption/HideOptionSearchAllFile.cs
@@ -31,7 +31,7 @@
            var btnButton = new NormalViewControl(200, 69, true);
            btnButton.Gravity = Gravity.CenterVertical;
            btnButton.X = bodyFrameLayout.Width - Application.GetRealWidth(200) - ControlCommonResourse.XXLeft;
            btnButton.X = bodyFrameLayout.Width - Application.GetRealWidth(200) - HdlControlResourse.XXLeft;
            btnButton.TextColor = UserCenterColor.Current.TopLayoutTitleText;
            btnButton.TextAlignment = TextAlignment.BottomRight;
            btnButton.TextSize = 17;
@@ -65,7 +65,7 @@
                    nextDir += Arry[i] + "/";
                }
                //初始化中部信息
                this.InitMiddleFrame(nextDir.Trim('/'));
                this.InitMiddleFrame(nextDir);
            };
        }
@@ -89,23 +89,16 @@
            //}
            //else
            {
                try
                {
                    var files = System.IO.Directory.GetDirectories(directory);
                    foreach (var file in files)
                    {
                        string[] arry = file.Split(new string[] { "/" }, StringSplitOptions.RemoveEmptyEntries);
                        listDirectory.Add(arry[arry.Length - 1]);
                    }
                    listDirectory.Sort();
                    listAllFile = HdlFileLogic.Current.GetFileFromDirectory(directory.TrimEnd('/'));
                    listAllFile.Sort();
                var files = System.IO.Directory.GetDirectories(directory);
                foreach (var file in files)
                {
                    string[] arry = file.Split(new string[] { "/" }, StringSplitOptions.RemoveEmptyEntries);
                    listDirectory.Add(arry[arry.Length - 1]);
                }
                catch
                {
                    this.ShowMassage(ShowMsgType.Tip, "读取文件夹内容失败");
                }
                listDirectory.Sort();
                listAllFile = HdlFileLogic.Current.GetFileFromDirectory(directory.TrimEnd('/'));
                listAllFile.Sort();
            }
            var listView = new VerticalListControl(23);
@@ -171,7 +164,7 @@
            {
                try
                {
                    dirNewName = UserCenterLogic.DecryptPassword(UserCenterResourse.FileEncryptKey, directoryName);
                    dirNewName = HdlCommonLogic.Current.DecryptPassword(HdlUserCenterResourse.FileEncryptKey, directoryName);
                }
                catch { dirNewName = directoryName; }
            }
@@ -201,7 +194,7 @@
            {
                try
                {
                    fileNewName = UserCenterLogic.DecryptPassword(UserCenterResourse.FileEncryptKey, fileName);
                    fileNewName = HdlCommonLogic.Current.DecryptPassword(HdlUserCenterResourse.FileEncryptKey, fileName);
                }
                catch { fileNewName = fileName; }
            }
@@ -221,7 +214,7 @@
            btnReName.ButtonClickEvent += (sender, e) =>
            {
                //生成一个弹窗画面
                var dialogForm = new DialogInputControl();
                var dialogForm = new DialogInputControl(360);
                //保存模板到App
                dialogForm.SetTitleText("重命名");
                //请输入新名字
@@ -237,7 +230,7 @@
                    {
                        return;
                    }
                    HdlFileLogic.Current.MoveFileToDirectory(System.IO.Path.Combine(directory, fileName), System.IO.Path.Combine(directory, textValue));
                    HdlFileLogic.Current.MoveFile(System.IO.Path.Combine(directory, fileName), System.IO.Path.Combine(directory, textValue));
                    fileNewName = textValue;
                    fileName = textValue;