private void btnEliminarComponente_Click(object sender, EventArgs e)
        {
            ConsumeWebApi consume = new ConsumeWebApi();

            if (idcomponente.Text != String.Empty && !idcomponente.Text.Equals("label10"))
            {
                int  id     = Convert.ToInt32(idcomponente.Text);
                bool result = consume.eliminarComponente(id);

                if (result)
                {
                    MessageBox.Show("Componente eliminado correctamente", "Exito", MessageBoxButtons.OK, MessageBoxIcon.Information);
                }
                else
                {
                    MessageBox.Show("Algo salió mal. Intente nuevamente.", "Problemas", MessageBoxButtons.OKCancel, MessageBoxIcon.Warning);
                }
            }
        }