private void Eliminarbutton_Click(object sender, EventArgs e) { LimpiarProvider(); if (SetError(1)) { MessageBox.Show("Llenar campos Vacios"); return; } var result = MessageBox.Show("Seguro de Eliminar?", " ", MessageBoxButtons.YesNo, MessageBoxIcon.Question); if (result == DialogResult.Yes) { FacturacionBLL.ArreglarProducto(FacturacionBLL.Buscar(Convert.ToInt32(IDcomboBox.Text))); if (FacturacionBLL.Eliminar(Convert.ToInt32(IDcomboBox.Text))) { MessageBox.Show("Eliminado"); IDcomboBox.DataSource = null; LlenarComboBox(); Clean(); } else { MessageBox.Show("No se pudo eliminar"); } } }