Ejemplo n.º 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);
        }
Ejemplo n.º 2
0
        private void button1_Click(object sender, EventArgs e)
        {
            VerticalStackedForm form = new VerticalStackedForm();

            form.ShowDialog();
        }