private void btnAdd_Click_1(object sender, EventArgs e) { FrmBindInfoAdd bindInfoAdd = new FrmBindInfoAdd(); bindInfoAdd.ShowDialog(); FindView(); }
private void button1_Click(object sender, EventArgs e) { if (dataGridView1.SelectedRows.Count > 0) { FrmBindInfoAdd bindInfoAdd = new FrmBindInfoAdd(); bindInfoAdd.FormMode = 1; bindInfoAdd.Unit = dataGridView1.CurrentRow.Cells[1].Value.ToString(); bindInfoAdd.TruckNo = dataGridView1.CurrentRow.Cells[2].Value.ToString(); bindInfoAdd.CardNo = dataGridView1.CurrentRow.Cells[3].Value.ToString(); bindInfoAdd.ShowDialog(); FindView(); } }