private void Excute_Click(object sender, EventArgs e) { InitializeChart(); this.myChart.Series.Clear(); string strStartDate = this.startDateTimePicker.Text; string strEndDate = this.endDateTimePicker.Text; WindAPI w = new WindAPI(); w.start(); WindData wd = null; if (this.radioButton_KQ.Checked) { wd = w.edb("M5407921", strStartDate, strEndDate, ""); } else { wd = w.edb("M0000272", strStartDate, strEndDate, ""); } w.stop(); UpdateChart(wd); }