Skip to content

Commit

Permalink
fixed QuestorStatistics to display the files that can be read in the …
Browse files Browse the repository at this point in the history
…cbox
  • Loading branch information
MasterSpeed committed May 13, 2012
1 parent d0f2dec commit 11760be
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions QuestorStatistics/QuestorStatisticsUI.cs
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,14 @@ public QuestorStatisticsUI()
System.IO.DirectoryInfo o = new System.IO.DirectoryInfo(Localpath);
//System.IO.FileInfo[] myfiles = null;

//var logfilepattern = "*.CustomDatedStatistics.csv";
//var fileIter = Directory.EnumerateFiles(Localpath, logfilepattern, System.IO.SearchOption.AllDirectories);
var logfilepattern = "*.CustomDatedStatistics.csv";
IEnumerable<string> fileIter = Directory.EnumerateFiles(Localpath, logfilepattern, System.IO.SearchOption.AllDirectories);

//foreach (var file in fileIter)
//{
// cmb1.Items.Add(file);
//}
foreach (string file in fileIter)
{
string[] splits = file.Split('\\');
cmb1.Items.Add(splits[splits.Length-1]);
}

//for (int y = 0; y <= myfiles.Length - 1; y++)
//{
Expand Down

0 comments on commit 11760be

Please sign in to comment.