From 351bdda734832d821a9764b0cde8be5d83c4ec50 Mon Sep 17 00:00:00 2001
From: wjc <1243177876@qq.com>
Date: 星期四, 01 十二月 2022 09:56:25 +0800
Subject: [PATCH] 2022年12月01日09:56:23
---
ZigbeeApp/Shared/Phone/UserCenter/HideOption/HideOptionSearchAllFile.cs | 31 ++++++++++++++++++++++++++++++-
1 files changed, 30 insertions(+), 1 deletions(-)
diff --git a/ZigbeeApp/Shared/Phone/UserCenter/HideOption/HideOptionSearchAllFile.cs b/ZigbeeApp/Shared/Phone/UserCenter/HideOption/HideOptionSearchAllFile.cs
old mode 100755
new mode 100644
index 34348bd..3e3b151
--- a/ZigbeeApp/Shared/Phone/UserCenter/HideOption/HideOptionSearchAllFile.cs
+++ b/ZigbeeApp/Shared/Phone/UserCenter/HideOption/HideOptionSearchAllFile.cs
@@ -209,6 +209,35 @@
}
row1.frameTable.AddRightArrow();
+ var btnReName = row1.AddDeleteControl();
+ btnReName.Text = "閲嶅懡鍚�";
+ btnReName.ButtonClickEvent += (sender, e) =>
+ {
+ //鐢熸垚涓�涓脊绐楃敾闈�
+ var dialogForm = new DialogInputControl(360);
+ //淇濆瓨妯℃澘鍒癆pp
+ dialogForm.SetTitleText("閲嶅懡鍚�");
+ //璇疯緭鍏ユ柊鍚嶅瓧
+ dialogForm.SetTipText("璇疯緭鍏ユ柊鍚嶅瓧");
+ dialogForm.Text = fileName;
+
+ //鎸変笅纭鎸夐挳
+ dialogForm.ComfirmClickEvent += ((textValue) =>
+ {
+ //鐢婚潰鍏抽棴
+ dialogForm.CloseDialog();
+ if (textValue == string.Empty)
+ {
+ return;
+ }
+ HdlFileLogic.Current.MoveFileToDirectory(System.IO.Path.Combine(directory, fileName), System.IO.Path.Combine(directory, textValue));
+
+ fileNewName = textValue;
+ fileName = textValue;
+ btnName.Text = textValue;
+ });
+ };
+
var btnUpLoad = row1.AddEditorControl();
btnUpLoad.Text = "涓婁紶";
btnUpLoad.ButtonClickEvent += (sender, e) =>
@@ -218,7 +247,7 @@
HdlThreadLogic.Current.RunThread(() =>
{
string tagrtFile = System.IO.Path.Combine(directory, fileName);
- HdlBackupLogic.Current.UpLoadByteDataToOptionBackup(fileName, HdlFileLogic.Current.ReadFileByteContent(tagrtFile));
+ HdlBackupLogic.Current.UpLoadByteDataToOptionBackup(fileNewName, HdlFileLogic.Current.ReadFileByteContent(tagrtFile));
});
});
};
--
Gitblit v1.8.0