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