{
MyOrionDS.FileInfo.Clear()
DirectoryInfo subdirs = new DirectoryInfo(path);
DirectoryInfo[] dirs = subdirs.GetDirectories("*"
foreach (DirectoryInfo directory in dirs)
{
System.IO.DirectoryInfo dInfo = new System.IO.DirectoryInfo(di
if (tbxFileType.Text.Length == 0)
{
pattern = "*.*";
}
else
{
pattern = "*." + tbxFileType.Text;
}
System.IO.FileInfo[] fInfo = dInfo.GetFiles(pattern);
foreach (System.IO.FileInfo fi in fInfo)
{
//string fileInfoStuff = "";
string fileName = fi.FullName;
//string fileversion = "";
DateTime creationTime = fi.CreationTime;
DateTime LastModifyDate = fi.LastWriteTime;
System.Diagnostics.FileVer
//MessageBox.Show(myFileVe
//fileInfoStuff = fi.Name + " | " + creationTime + " | " + myFileVersionInfo.FileVers
OrionDataSet.FileInfoRow newFileInfoRow = (OrionDataSet.FileInfoRow)
newFileInfoRow.FileName = fi.FullName;
newFileInfoRow.LastModifyD
newFileInfoRow.CreateDate = creationTime;
newFileInfoRow.VersionNumb
MyOrionDS.FileInfo.Rows.Ad
MyOrionDS.FileInfo.AcceptC
//lbxPreview.Items.Add(fil
}
}
dataGridView1.DataSource = MyOrionDS.FileInfo;
}