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; }
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); }
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); }
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); }
protected override Analysis CreateAnalysis(string fileName) { return(TwServices.CreateAnalysis(fileName)); }
protected override Analysis CreateAnalysis(string fileName) { Analysis analysis = TwServices.CreateAnalysis(fileName); return(Classifier.Classify(analysis)); }