黄学彪
2020-07-21 a41a96b555f3aabf243741352bded5f28cd0ced5
ZigbeeApp/Shared/Phone/UserCenter/HideOption/HideOptionSearchAllFile.cs
@@ -50,7 +50,7 @@
            //初始化中部信息
            this.InitMiddleFrame(nowDirectory);
            this.BackButtonClickEvent += (btnContr) =>
            this.BackButtonClickEvent = (btnContr) =>
            {
                string rootPath = Shared.IO.FileUtils.RootPath.Trim('/');
                if (this.nowDirectory.Trim('/') == rootPath)
@@ -80,14 +80,14 @@
            var listDirectory = new List<string>();
            var listAllFile = new List<string>();
            string rootPath = Shared.IO.FileUtils.RootPath.Trim('/');
            if (this.nowDirectory.Trim('/') == rootPath)
            {
                //根目录只要两个就可以了
                listDirectory.Add(Common.Config.Instance.Guid);
                listDirectory.Add(Application.Skin != null ? Application.Skin : "Phone");
            }
            else
            //string rootPath = Shared.IO.FileUtils.RootPath.Trim('/');
            //if (this.nowDirectory.Trim('/') == rootPath)
            //{
            //    //根目录只要两个就可以了
            //    listDirectory.Add(Common.Config.Instance.Guid);
            //    listDirectory.Add(Application.Skin != null ? Application.Skin : "Phone");
            //}
            //else
            {
                var files = System.IO.Directory.GetDirectories(directory);
                foreach (var file in files)
@@ -97,7 +97,7 @@
                }
                listDirectory.Sort();
                listAllFile = HdlAutoBackupLogic.GetFileFromDirectory(directory.TrimEnd('/'));
                listAllFile = HdlFileLogic.Current.GetFileFromDirectory(directory.TrimEnd('/'));
                listAllFile.Sort();
            }
@@ -185,6 +185,20 @@
            }
            row1.frameTable.AddRightArrow();
            var btnUpLoad = row1.AddEditorControl();
            btnUpLoad.Text = "上传";
            btnUpLoad.ButtonClickEvent += (sender, e) =>
            {
                this.ShowMassage(ShowMsgType.Confirm, "是否上传该文件(测试)?", () =>
                {
                    HdlThreadLogic.Current.RunThread(() =>
                    {
                        string tagrtFile = System.IO.Path.Combine(directory, fileName);
                        HdlBackupLogic.Current.UpLoadByteDataToOptionBackup(fileName, HdlFileLogic.Current.ReadFileByteContent(tagrtFile));
                    });
                });
            };
            var btnDelete = row1.AddDeleteControl();
            btnDelete.ButtonClickEvent += (sender, e) =>
            {