예제 #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);
                }
            }
        }
예제 #2
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);
        }
예제 #3
0
        void ExecuteNewLog()
        {
            List <string> fileNames = TwFile.GetLogFilesIncludingZipped(Properties.Settings.Default.DirectoryLog);

            if (fileNames.Count > 0)
            {
                UpdateLogFolder(fileNames[0]);
            }

            foreach (string fileNameLog in fileNames)
            {
                if (TwServices.IsLog(fileNameLog))
                {
                    AddTabLoadLog(fileNameLog);
                }
            }
        }