private void b_mas_Click(object sender, EventArgs e) { frm_marcas marcas = new frm_marcas(); marcas.accion = "Insertar"; marcas.Show(); }
private void dataGridView1_CellDoubleClick(object sender, DataGridViewCellEventArgs e) { if (e.RowIndex > -1) { frm_marcas marcas = new frm_marcas(); marcas.accion = "Editar"; marcas.codigo = dataGridView1.Rows[e.RowIndex].Cells[0].Value.ToString().Replace(" ", ""); marcas.ShowDialog(); } }