黄学彪
2020-12-17 9f326f4000847e6167d8166fa2f6a66f53cb3734
ZigbeeApp/Shared/Phone/UserCenter/HideOption/HideOptionSearchAllFile.cs
old mode 100755 new mode 100644
@@ -31,7 +31,7 @@
            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;
@@ -164,7 +164,7 @@
            {
                try
                {
                    dirNewName = UserCenterLogic.DecryptPassword(UserCenterResourse.FileEncryptKey, directoryName);
                    dirNewName = HdlCommonLogic.Current.DecryptPassword(HdlUserCenterResourse.FileEncryptKey, directoryName);
                }
                catch { dirNewName = directoryName; }
            }
@@ -194,7 +194,7 @@
            {
                try
                {
                    fileNewName = UserCenterLogic.DecryptPassword(UserCenterResourse.FileEncryptKey, fileName);
                    fileNewName = HdlCommonLogic.Current.DecryptPassword(HdlUserCenterResourse.FileEncryptKey, fileName);
                }
                catch { fileNewName = fileName; }
            }
@@ -209,6 +209,35 @@
            }
            row1.frameTable.AddRightArrow();
            var btnReName = row1.AddDeleteControl();
            btnReName.Text = "重命名";
            btnReName.ButtonClickEvent += (sender, e) =>
            {
                //生成一个弹窗画面
                var dialogForm = new DialogInputControl(360);
                //保存模板到App
                dialogForm.SetTitleText("重命名");
                //请输入新名字
                dialogForm.SetTipText("请输入新名字");
                dialogForm.Text = fileName;
                //按下确认按钮
                dialogForm.ComfirmClickEvent += ((textValue) =>
                {
                    //画面关闭
                    dialogForm.CloseDialog();
                    if (textValue == string.Empty)
                    {
                        return;
                    }
                    HdlFileLogic.Current.MoveFile(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));
                    });
                });
            };