Exemplo n.º 1
0
 private void btnAgregar_Click(object sender, System.EventArgs e)
 {
     try
     {
         app.CrearProducto(txtCodigo.Text, txtNombre.Text, rtxtDetalle.Text, txtCosto.Text, txtPrecio.Text, dtpVence.Value.Date, txtCategoria.Text, chkEstado.Checked);
         LimpiarTextos();
         MostrarData();
     }
     catch (Exception exception)
     {
         MessageBox.Show("Aparecio el siguiente error\n " + exception);
         throw;
     }
 }