public IChartTable GetChart() { IChartTable chart = null; chart = new BarChart(); return(chart); }
public static IChartTable GetChart(ChartType chartType) { IChartTable chart = null; switch (chartType) { case ChartType.PieChart: chart = new PieChart(); Console.WriteLine("Init Pie Chart.."); break; case ChartType.LineChart: chart = new LineChart(); Console.WriteLine("Init line Chart.."); break; case ChartType.BarChart: chart = new BarChart(); Console.WriteLine("Init Bar Chart.."); break; } return(chart); }
internal FormBitmapGraphSelection(IObjectLabel label, BitmapGraphSelection selection, IChartTable ct) : this() { this.label = label; UpdateFormUI(); this.selection = selection; userControlBitmapGraphSelectionTab.Selection = selection; userControlBitmapGraphSelectionTab.ChartTable = ct; }