private void btn_add1_Click(object sender, EventArgs e) { if (dataGridView2.Rows.Count == 16) { MessageBox.Show("串口输出最多传输16个参数!"); } Frm_Parachoose frm = new Frm_Parachoose(-1, dataGridView2); frm.ShowDialog(); }
private void dataGridView2_CellDoubleClick(object sender, DataGridViewCellEventArgs e) { if (e.ColumnIndex != 0) { return; } Frm_Parachoose frm = new Frm_Parachoose(e.RowIndex, dataGridView2); frm.ShowDialog(); }
private void btn_add_Click(object sender, EventArgs e) { Frm_Parachoose frm = new Frm_Parachoose(-1, dataGridView1); frm.ShowDialog(); }