private void 普通绘图PToolStripMenuItem_Click(object sender, EventArgs e) { ZendChart zend = new ZendChart(); zend.Show(this); }
public void ShowCharting(int Type, DataSet ds) { switch (Type) { case 0: ZendChart chart = new ZendChart(); chart.Dock = DockStyle.Fill; this.panel_charting.Controls.Clear(); this.panel_charting.Controls.Add(chart); chart.ShowCharting(ds); break; case 1: UC_DataGridCharting gridCharting = new UC_DataGridCharting(); gridCharting.Dock = DockStyle.Fill; this.panel_charting.Controls.Clear(); this.panel_charting.Controls.Add(gridCharting); gridCharting.ShowCharting(ds); break; case 2: ZendChart chartOneTime = new ZendChart(); chartOneTime.groupBox4.Enabled = false; chartOneTime.Dock = DockStyle.Fill; this.panel_charting.Controls.Clear(); this.panel_charting.Controls.Add(chartOneTime); chartOneTime.ShowChartingForOneTime(ds); break; case 3: //启动时默认显示方式 UC_DataGridCharting gridChartingDefault = new UC_DataGridCharting(); gridChartingDefault.Dock = DockStyle.Fill; this.panel_charting.Controls.Clear(); this.panel_charting.Controls.Add(gridChartingDefault); this.MainControl = gridChartingDefault; break; } }