From 5428935270159bfc42c2934ed7fb1091554fc9a4 Mon Sep 17 00:00:00 2001 From: 黄学彪 <hxb@hdlchina.com.cn> Date: 星期四, 09 七月 2020 17:12:42 +0800 Subject: [PATCH] 修改了 sokect --- ZigbeeApp/Shared/Phone/UserCenter/HideOption/HideOptionFileListForm.cs | 22 ++++++++++++++++++---- 1 files changed, 18 insertions(+), 4 deletions(-) diff --git a/ZigbeeApp/Shared/Phone/UserCenter/HideOption/HideOptionFileListForm.cs b/ZigbeeApp/Shared/Phone/UserCenter/HideOption/HideOptionFileListForm.cs index 0f19b03..a4a3e23 100755 --- a/ZigbeeApp/Shared/Phone/UserCenter/HideOption/HideOptionFileListForm.cs +++ b/ZigbeeApp/Shared/Phone/UserCenter/HideOption/HideOptionFileListForm.cs @@ -57,7 +57,7 @@ { this.ClearBodyFrame(); - var listAllFile = HdlAutoBackupLogic.GetFileFromDirectory(directory); + var listAllFile = HdlFileLogic.Current.GetFileFromDirectory(directory); listAllFile.Sort(); var listView = new VerticalListControl(23); @@ -90,7 +90,7 @@ } }); }; - if (directory == UserCenterLogic.CombinePath()) + if (directory == Common.Config.Instance.FullPath) { btnButon.CanClick = false; } @@ -118,12 +118,26 @@ } 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) => { this.ShowMassage(ShowMsgType.Confirm, "鏄惁娓呴櫎璇ョ紦瀛樻枃浠�", () => { - var myFile = UserCenterLogic.CombinePath(directory, fileName); + var myFile = System.IO.Path.Combine(Common.Config.Instance.FullPath, directory, fileName); try { System.IO.File.Delete(myFile); @@ -140,7 +154,7 @@ row1.frameTable.ButtonClickEvent += (sender, e) => { var form = new HideOptionFileContentForm(); - form.AddForm(UserCenterLogic.CombinePath(directory, fileName)); + form.AddForm(System.IO.Path.Combine(Common.Config.Instance.FullPath, directory, fileName)); }; } -- Gitblit v1.8.0