old mode 100755
new mode 100644
| | |
| | | nextDir += Arry[i] + "/";
|
| | | }
|
| | | //初始化中部信息
|
| | | this.InitMiddleFrame(nextDir);
|
| | | this.InitMiddleFrame(nextDir.Trim('/'));
|
| | | };
|
| | | }
|
| | |
|
| | |
| | | //}
|
| | | //else
|
| | | {
|
| | | var files = System.IO.Directory.GetDirectories(directory);
|
| | | foreach (var file in files)
|
| | | {
|
| | | string[] arry = file.Split(new string[] { "/" }, StringSplitOptions.RemoveEmptyEntries);
|
| | | listDirectory.Add(arry[arry.Length - 1]);
|
| | | try |
| | | { |
| | | var files = System.IO.Directory.GetDirectories(directory); |
| | | foreach (var file in files) |
| | | { |
| | | string[] arry = file.Split(new string[] { "/" }, StringSplitOptions.RemoveEmptyEntries); |
| | | listDirectory.Add(arry[arry.Length - 1]); |
| | | } |
| | | listDirectory.Sort(); |
| | | |
| | | listAllFile = HdlFileLogic.Current.GetFileFromDirectory(directory.TrimEnd('/')); |
| | | listAllFile.Sort(); |
| | | }
|
| | | listDirectory.Sort();
|
| | |
|
| | | listAllFile = HdlFileLogic.Current.GetFileFromDirectory(directory.TrimEnd('/'));
|
| | | listAllFile.Sort();
|
| | | catch
|
| | | { |
| | | this.ShowMassage(ShowMsgType.Tip, "读取文件夹内容失败"); |
| | | }
|
| | | }
|
| | |
|
| | | var listView = new VerticalListControl(23);
|
| | |
| | | }
|
| | | row1.frameTable.AddRightArrow();
|
| | |
|
| | | var btnReName = row1.AddDeleteControl();
|
| | | btnReName.Text = "重命名";
|
| | | btnReName.ButtonClickEvent += (sender, e) =>
|
| | | {
|
| | | //生成一个弹窗画面
|
| | | var dialogForm = new DialogInputControl();
|
| | | //保存模板到App
|
| | | 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) =>
|
| | |
| | | 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));
|
| | | });
|
| | | });
|
| | | };
|