Esempio n. 1
0
        void CompareAnalysesExecuted(object sender, ExecutedRoutedEventArgs e)
        {
            string fileNameAnalysisLower = TwFile.GetAnalysisFile();

            if (fileNameAnalysisLower == null || fileNameAnalysisLower == string.Empty)
            {
                return;
            }

            string fileNameAnalysisUpper = TwFile.GetAnalysisFile();

            if (fileNameAnalysisUpper == null || fileNameAnalysisUpper == string.Empty)
            {
                return;
            }

            UpdateAnalysisFolder(fileNameAnalysisUpper);

            Mouse.OverrideCursor = Cursors.Wait;

            var analysisLower = TwServices.CreateAnalysis(fileNameAnalysisLower);
            var analysisUpper = TwServices.CreateAnalysis(fileNameAnalysisUpper);

            var compareAnalysesPanel = new CompareAnalysesPanel();

            compareAnalysesPanel.AnalysisLower = analysisLower;
            compareAnalysesPanel.AnalysisUpper = analysisUpper;
            compareAnalysesPanel.Initialize();

            AddTab(CreateTabItemHeader("Compare", TwGui.GetImage("traces2.png"), CreateCompareAnalysesHeaderToolTip(fileNameAnalysisUpper, fileNameAnalysisLower)), compareAnalysesPanel, compareAnalysesPanel.StyledEventsViewerUpper.EventsViewer.ScrollViewer, false);

            Mouse.OverrideCursor = null;
        }
Esempio n. 2
0
        FixtureSummaryReportPanel Load(string fileName, bool byInstances)
        {
            Analysis analysis = TwServices.CreateAnalysis(fileName);

            analysis.UpdateFixtureSummaries();

            var reportPanel = new FixtureSummaryReportPanel();

            reportPanel.ByInstances = byInstances;
            reportPanel.Analysis    = analysis;
            reportPanel.Radius      = 200;
            reportPanel.Initialize();

            return(reportPanel);
        }
Esempio n. 3
0
        AnalysisPanel LoadAnalysis(string fileName, bool showAnalyst)
        {
            Mouse.OverrideCursor = Cursors.Wait;

            Analysis analysis = TwServices.CreateAnalysis(fileName);

            analysis.UpdateFixtureSummaries();

            var analysisPanel = CreateAnalysisPanel(analysis, fileName, showAnalyst);

            analysisPanel.SaveFileName = fileName;

            Mouse.OverrideCursor = null;

            return(analysisPanel);
        }
Esempio n. 4
0
        DistributionReportPanel Load(string fileName)
        {
            Mouse.OverrideCursor = Cursors.Wait;

            Analysis analysis = TwServices.CreateAnalysis(fileName);

            analysis.UpdateFixtureSummaries();

            var reportPanel = new DistributionReportPanel();

            reportPanel.Analysis = analysis;
            reportPanel.Initialize();

            Mouse.OverrideCursor = null;

            return(reportPanel);
        }
Esempio n. 5
0
 protected override Analysis CreateAnalysis(string fileName)
 {
     return(TwServices.CreateAnalysis(fileName));
 }
Esempio n. 6
0
        protected override Analysis CreateAnalysis(string fileName)
        {
            Analysis analysis = TwServices.CreateAnalysis(fileName);

            return(Classifier.Classify(analysis));
        }