## :date:2025-08-26 星期二更新
### RySmartEditor V1.0.2508.2601 - *.[改进]改进上传FTP流畅性。
This commit is contained in:
1 parent
b550d9e080
commit
9d3ea0c979
8 files changed
+32
-17
No files matched your search
@@ -752,7 +752,7 @@ namespace SuperDesign.Manager.FTP
|
||||
public void UpdateFileInfo() {
|
||||
ObjectListView1_SelectionChanged(objectListView1, EventArgs.Empty);
|
||||
}
|
||||
public void UpdateFileInfo(string path,DateTime LastWriteTime,long FileSize) {
|
||||
public async void UpdateFileInfo(string path,DateTime LastWriteTime,long FileSize) {
|
||||
var mpath = "/"+path.ToLower().TrimStart('/');
|
||||
if(objectListView1.SelectedObject!=null)
|
||||
{
|
||||
@@ -766,18 +766,28 @@ namespace SuperDesign.Manager.FTP
|
||||
return;
|
||||
}
|
||||
}
|
||||
for (int i = 0; i < objectListView1.ObjectsList.Count; i++) {
|
||||
var item = (FTPop.RemoteFileInfo)objectListView1.ObjectsList[i];
|
||||
if (item.FullName.ToLower() == mpath) {
|
||||
item.LastWriteTime = LastWriteTime;
|
||||
item.Length = FileSize;
|
||||
objectListView1.RefreshObject(item);
|
||||
if(item==objectListView1.SelectedObject) {
|
||||
ObjectListView1_SelectionChanged(objectListView1, EventArgs.Empty);
|
||||
var enumerator = objectListView1.Objects.GetEnumerator();
|
||||
await Task.Run(() =>
|
||||
{
|
||||
while (enumerator.MoveNext())
|
||||
{
|
||||
var item = (FTPop.RemoteFileInfo)enumerator.Current;
|
||||
if (item.FullName.ToLower() == mpath)
|
||||
{
|
||||
item.LastWriteTime = LastWriteTime;
|
||||
item.Length = FileSize;
|
||||
this.Invoke(new Action(() =>
|
||||
{
|
||||
objectListView1.RefreshObject(item);
|
||||
if (item == objectListView1.SelectedObject)
|
||||
{
|
||||
ObjectListView1_SelectionChanged(objectListView1, EventArgs.Empty);
|
||||
}
|
||||
}));
|
||||
return;
|
||||
}
|
||||
return;
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
private void 查看历史记录ToolStripMenuItem_Click(object sender, EventArgs e)
|
||||
{
|
||||
|
||||
@@ -32,5 +32,5 @@ using System.Runtime.InteropServices;
|
||||
//可以指定所有这些值,也可以使用“生成号”和“修订号”的默认值
|
||||
//通过使用 "*",如下所示:
|
||||
// [assembly: AssemblyVersion("1.0.*")]
|
||||
[assembly: AssemblyVersion("1.0.2508.0201")]
|
||||
[assembly: AssemblyFileVersion("1.0.2508.0201")]
|
||||
[assembly: AssemblyVersion("1.0.2508.2601")]
|
||||
[assembly: AssemblyFileVersion("1.0.2508.2601")]
|
||||
@@ -320,7 +320,7 @@
|
||||
//
|
||||
this.粘贴剪切板文件列表ToolStripMenuItem.Name = "粘贴剪切板文件列表ToolStripMenuItem";
|
||||
this.粘贴剪切板文件列表ToolStripMenuItem.Size = new System.Drawing.Size(232, 22);
|
||||
this.粘贴剪切板文件列表ToolStripMenuItem.Text = "粘贴";
|
||||
this.粘贴剪切板文件列表ToolStripMenuItem.Text = "粘贴剪切板文件列表";
|
||||
this.粘贴剪切板文件列表ToolStripMenuItem.Click += new System.EventHandler(this.粘贴剪切板文件列表ToolStripMenuItem_Click);
|
||||
//
|
||||
// 删除文件ToolStripMenuItem
|
||||
|
||||
Reference in new issue
Block a user