private void b_agregar_Click(object sender, EventArgs e) { frm_consecutivos consecutivos = new frm_consecutivos(); consecutivos.accion = "Insertar"; consecutivos.Show(); }
private void dgv_consecutivos_CellDoubleClick(object sender, DataGridViewCellEventArgs e) { if (e.RowIndex > -1) { frm_consecutivos consecutivos = new frm_consecutivos(); consecutivos.accion = "Editar"; consecutivos.codigo = dgv_consecutivos.Rows[e.RowIndex].Cells[0].Value.ToString().Replace(" ", ""); consecutivos.ShowDialog(); } }