private void btnRegistrar_Click(object sender, EventArgs e)
        {
            ServiciosProducto servicios   = new ServiciosProducto();
            Composicion       composicion = new Composicion(txtPresentacion.Text, Convert.ToInt32(txtPrecio.Text));

            MessageBox.Show(composicion.RegistrarPresentacion());
            txtPrecio.Text       = String.Empty;
            txtPresentacion.Text = String.Empty;
            Refresh();
        }
 private void btnRegistrar_Click(object sender, EventArgs e)
 {
     try
     {
         Composicion composicion = new Composicion(txtPresentacion.Text, Convert.ToInt32(txtPrecio.Text));
         composicion.Agregar(new Hoja(txtProducto.Text, txtPresentacion.Text, txtCaracteristica.Text, Convert.ToInt32(txtPrecio.Text)));
         MessageBox.Show("Configuracion registrada con exito");
         Limpiar();
     }
     catch (Exception)
     {
         MessageBox.Show("Ha habido un error al momento de registrar la configuracion.");
         throw;
     }
 }