티스토리 뷰
int no;
private void dataGridView2_CellClick(object sender, DataGridViewCellEventArgs e)
{
if (e.RowIndex >= 0)
{
DataGridViewRow row = this.dataGridView2.Rows[e.RowIndex];
no = Convert.ToInt32(row.Cells["순"].Value.ToString());
this.comboBox_chart_type.Text = row.Cells["타입"].Value.ToString();
this.textBox_title.Text = row.Cells["항목"].Value.ToString();
this.textBox_time.Text = row.Cells["시간"].Value.ToString();
this.textBox_value.Text = row.Cells["크기"].Value.ToString();
z2.GraphPane.CurveList.Clear();
z2.GraphPane.GraphObjList.Clear();
// MessageBox.Show(no.ToString());
// CreateGraph(chart_time, chart_value, chart_title, chart_type);
CreateGraph(Convert.ToInt32(this.textBox_time.Text), Convert.ToInt32(this.textBox_value.Text), this.textBox_title.Text, this.comboBox_chart_type.Text);
}
}