old mode 100755
new mode 100644
| | |
| | |
|
| | | 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;
|
| | |
| | | {
|
| | | try
|
| | | {
|
| | | dirNewName = UserCenterLogic.DecryptPassword(UserCenterResourse.FileEncryptKey, directoryName);
|
| | | dirNewName = HdlCommonLogic.Current.DecryptPassword(HdlUserCenterResourse.FileEncryptKey, directoryName);
|
| | | }
|
| | | catch { dirNewName = directoryName; }
|
| | | }
|
| | |
| | | {
|
| | | try
|
| | | {
|
| | | fileNewName = UserCenterLogic.DecryptPassword(UserCenterResourse.FileEncryptKey, fileName);
|
| | | fileNewName = HdlCommonLogic.Current.DecryptPassword(HdlUserCenterResourse.FileEncryptKey, fileName);
|
| | | }
|
| | | catch { fileNewName = fileName; }
|
| | | }
|
| | |
| | | btnReName.ButtonClickEvent += (sender, e) =>
|
| | | {
|
| | | //生成一个弹窗画面
|
| | | var dialogForm = new DialogInputControl();
|
| | | var dialogForm = new DialogInputControl(360);
|
| | | //保存模板到App
|
| | | dialogForm.SetTitleText("重命名");
|
| | | //请输入新名字
|
| | |
| | | {
|
| | | 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;
|