From a41a96b555f3aabf243741352bded5f28cd0ced5 Mon Sep 17 00:00:00 2001 From: 黄学彪 <hxb@hdlchina.com.cn> Date: 星期二, 21 七月 2020 15:56:32 +0800 Subject: [PATCH] 新版本 --- ZigbeeApp/Shared/Phone/UserCenter/HideOption/HideOptionSearchAllFile.cs | 32 +++++++++++++++++++++++--------- 1 files changed, 23 insertions(+), 9 deletions(-) diff --git a/ZigbeeApp/Shared/Phone/UserCenter/HideOption/HideOptionSearchAllFile.cs b/ZigbeeApp/Shared/Phone/UserCenter/HideOption/HideOptionSearchAllFile.cs index 1809c0f..401554a 100755 --- a/ZigbeeApp/Shared/Phone/UserCenter/HideOption/HideOptionSearchAllFile.cs +++ b/ZigbeeApp/Shared/Phone/UserCenter/HideOption/HideOptionSearchAllFile.cs @@ -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) => { -- Gitblit v1.8.0