Permalink
Browse files

fixed QuestorStatistics to display the files that can be read in the …

…cbox
  • Loading branch information...
MasterSpeed committed May 13, 2012
1 parent d0f2dec commit 11760be9e3d6d7582b60e52ae0faacdab1434b9c
Showing with 7 additions and 6 deletions.
  1. +7 −6 QuestorStatistics/QuestorStatisticsUI.cs
@@ -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++)
//{

0 comments on commit 11760be

Please sign in to comment.