コード例 #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 button4_Click(object sender, EventArgs e)
        {
            PieForm form = new PieForm();

            form.ShowDialog();
        }