private void btnEliminar_Click(object sender, EventArgs e) { if (MessageBox.Show("¿Estás seguro? El cambio será permanente", "Se requiere confirmación", MessageBoxButtons.YesNo, MessageBoxIcon.Warning) == System.Windows.Forms.DialogResult.Yes) { // se la información se agrega mostramos un mensaje if (oProductosDAO.Borrar(RecuperarInformacion()) == 1) { MessageBox.Show("Registro Borrado"); } else { MessageBox.Show("Algo salio mal"); } dtgProductos.DataSource = oProductosDAO.Buscar(); } btnAgregar.Enabled = true; btnEliminar.Enabled = false; btnModificar.Enabled = false; btnCancelar.Enabled = false; }