private void CreateGraph(ZedGraphControl zgc) { //zgc.Controls.Clear(); GraphPane myPane = zgc.GraphPane; //添加新的控件前先将面板上已经存在的控件清除。 myPane.CurveList.Clear(); myPane.GraphObjList.Clear(); // Set the titles and axis labels