Beispiel #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);
        }
Beispiel #2
0
        private void button2_Click(object sender, EventArgs e)
        {
            BarForm form = new BarForm();

            form.ShowDialog();
        }