void DispatchLoad(List <string> files) { var listNormalized = new List <string>(); for (int i = 0; i < files.Count; i++) { string fileSpec = System.IO.Path.GetFileName(files[i]); string directory = System.IO.Path.GetDirectoryName(files[i]); if (System.IO.Directory.Exists(directory)) { string[] filesDirectory = System.IO.Directory.GetFiles(directory, fileSpec); foreach (string file in filesDirectory) { listNormalized.Add(file); } } } foreach (string fileName in listNormalized) { if (TwServices.IsLog(fileName)) { AddTabLoadLog(fileName); } else if (TwServices.IsAnalysis(fileName)) { AddTabLoadAnalysis(fileName); } } }
void OpenRecoverExecuted(object sender, ExecutedRoutedEventArgs e) { List <string> fileNames = TwFile.GetArffAnalysisFilesRecover(); foreach (string fileNameActualAnalysis in fileNames) { if (TwServices.IsAnalysis(fileNameActualAnalysis)) { AddTabLoadAnalysis(fileNameActualAnalysis); } } }
HourlyReportPanel LoadHourlyReport(string fileName) { HourlyReportPanel reportPanel = null; if (TwServices.IsLog(fileName)) { reportPanel = LoadLog(fileName); } else if (TwServices.IsAnalysis(fileName)) { reportPanel = LoadAnalysis(fileName); } return(reportPanel); }
void ExecuteOpen() { List <string> fileNames = TwFile.GetAnalysisFilesIncludingZipped(); if (fileNames.Count > 0) { UpdateAnalysisFolder(fileNames[0]); } foreach (string fileNameActualAnalysis in fileNames) { if (TwServices.IsAnalysis(fileNameActualAnalysis)) { AddTabLoadAnalysis(fileNameActualAnalysis); } } }