public void Initialize() { Title = "Pie Chart - By " + (ByInstances ? "Events" : "Volume") + " - " + Analysis.KeyCode; FixtureSummaryReportPanel.ByInstances = ByInstances; FixtureSummaryReportPanel.Analysis = Analysis; FixtureSummaryReportPanel.Radius = 200; FixtureSummaryReportPanel.Initialize(); }
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); }