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); }
private void button3_Click(object sender, EventArgs e) { AdjacentStackedForm form = new AdjacentStackedForm(); form.ShowDialog(); }