Exemplo n.º 1
0
        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);
                }
            }
        }
Exemplo n.º 2
0
        void OpenRecoverExecuted(object sender, ExecutedRoutedEventArgs e)
        {
            List <string> fileNames = TwFile.GetArffAnalysisFilesRecover();

            foreach (string fileNameActualAnalysis in fileNames)
            {
                if (TwServices.IsAnalysis(fileNameActualAnalysis))
                {
                    AddTabLoadAnalysis(fileNameActualAnalysis);
                }
            }
        }
Exemplo n.º 3
0
        HourlyReportPanel LoadHourlyReport(string fileName)
        {
            HourlyReportPanel reportPanel = null;

            if (TwServices.IsLog(fileName))
            {
                reportPanel = LoadLog(fileName);
            }
            else if (TwServices.IsAnalysis(fileName))
            {
                reportPanel = LoadAnalysis(fileName);
            }

            return(reportPanel);
        }
Exemplo n.º 4
0
        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);
                }
            }
        }