private void ListFiles(string path) { string dj = string.Format("{0}\{1}\", path, "物品照"); try { FileSystemInfo djinfo = new DirectoryInfo(dj); if (!djinfo.Exists && !wpinfo.Exists) { return; } if (djinfo.Exists) { DirectoryInfo djdir = djinfo as DirectoryInfo; //不是目录 if (djdir == null) { return; } else { FileInfo[] djarrFi = djdir.GetFiles(); SortAsFileCreationTime(ref djarrFi); //物品照 for (int i = 0; i < djarrFi.Length; i++) { axEloamThumbnail2.Add(djarrFi[i].FullName); } } }