示例#1
0
        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);
        }
示例#3
0
 internal FormBitmapGraphSelection(IObjectLabel label, BitmapGraphSelection selection, IChartTable ct)
     : this()
 {
     this.label = label;
     UpdateFormUI();
     this.selection = selection;
     userControlBitmapGraphSelectionTab.Selection  = selection;
     userControlBitmapGraphSelectionTab.ChartTable = ct;
 }