예제 #1
0
        private GraphForm CreateGraphForm(String graphType)
        {
            GraphForm result = null;

            if (graphType.Equals("VerticalStackedGraph"))
            {
                result = new VerticalStackedForm();
            }
            else if (graphType.Equals("AdjacentStackedGraph"))
            {
                result = new AdjacentStackedForm();
            }
            else if (graphType.Equals("BarGraph"))
            {
                result = new BarForm();
            }
            else if (graphType.Equals("PieGraph"))
            {
                result = new PieForm();
            }
            else if (graphType.Equals("LineGraph"))
            {
                result = new LineForm();
            }
            else if (graphType.Equals("CompositeLineGraph"))
            {
                result = new CompositeLineForm();
            }

            return(result);
        }
예제 #2
0
        private void btnCompositeLineGraph_Click(object sender, EventArgs e)
        {
            CompositeLineForm form = new CompositeLineForm();

            form.ShowDialog();
        }