public VisualisationDataControl() { InitializeComponent(); VisualisationPlotControl ecgVPControl = new VisualisationPlotControl(); VisualisationTableControl ecgVTControl = new VisualisationTableControl(); VisualisationHistogramControl ecgVHControl = new VisualisationHistogramControl(); visulisationDataTabsList = new List<TabItem>(); TabItem ecgBaselineTab = new TabItem(); ecgBaselineTab.Header = "Plot"; ecgBaselineTab.Content = ecgVPControl; visulisationDataTabsList.Add(ecgBaselineTab); TabItem tableControl = new TabItem(); tableControl.Header = "Table"; tableControl.Content = ecgVTControl; visulisationDataTabsList.Add(tableControl); TabItem histogramControl = new TabItem(); histogramControl.Header = "Histogram"; histogramControl.Content = ecgVHControl; visulisationDataTabsList.Add(histogramControl); this.EcgDataDynamicTab.DataContext = visulisationDataTabsList; }
public void StartHistogram(string modName) { VisualisationHistogramControl ecgVHControl = new VisualisationHistogramControl(); TabItem histogramControl = new TabItem(); histogramControl.Header = "Histogram"; histogramControl.Content = ecgVHControl; visulisationDataTabsList.Add(histogramControl); }