📄 updatelocalfiles.cs
字号:
using System;
using System.Collections;
using System.IO;
namespace AutoRefresh
{
/// <summary>
///
/// </summary>
public class UpdateLocalFiles
{
private string sSourceFileName ="";
private string sDestFileName = "";
public UpdateLocalFiles()
{
//
// TODO: 在此处添加构造函数逻辑
//
}
public bool start()
{
bool brlt = false;
try
{
for(int i = 0; i < Form1.static_Para.arrlst.Count;i++)
{
sSourceFileName = Form1.static_Para.sFilePath + Form1.static_Para.arrlst[i].ToString();
sDestFileName = Form1.static_Para.sLocalFilePath + Form1.static_Para.arrlst[i].ToString();
System.IO.File.Copy(sSourceFileName,sDestFileName);
}
brlt = true;
}
catch
{
brlt = false;
}
return brlt;
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -