updatelocalfiles.cs
来自「一个WINCE下用ado.net连接数据库的例子 作者:tanis」· CS 代码 · 共 41 行
CS
41 行
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 + =
减小字号Ctrl + -
显示快捷键?