/// <summary>
/// 获取程序当前文件目录下的所有文件列表/// </summary>
/// <param name="path">文件搜索路径</param>
/// <returns>文件名列表</returns>
private List<string> GetAllFiles(string A_Path)
{
List<string> l_Files = new List<string>();
DirectoryInfo l_DirecInfo = new DirectoryInfo(A_Path);
foreach (FileInfo l_FileInfo in l_DirecInfo.GetFiles("*"))
{
l_Files.Add(l_FileInfo.FullName);
}
foreach (DirectoryInfo l_DirecInfoChild in l_DirecInfo.GetDirectories("*"))
{
GetAllFiles(l_DirecInfoChild.FullName);
}
if (l_Files.Count > 0)
{
return l_Files;
}
else
return null;
}