private void Refrescarbutton_Click(object sender, EventArgs e) { Inventarios inventario = InventariosBLL.Buscar(1); double total = inventario.Total; ValorTotaltextBox.Text = total.ToString(); }
private void RefrescarButton_Click(object sender, EventArgs e) { Inventarios inventario = InventariosBLL.Buscar(1); double TotalInventario; TotalInventario = inventario.Total; TotalTextBox.Text = TotalInventario.ToString(); }
private void Actualizarbutton_Click(object sender, EventArgs e) { bool paso = false; Contexto contexto = new Contexto(); Inventario inventario = new Inventario(); try { inventario = InventariosBLL.Buscar(1); if (inventario == null) { inventario = LlenaClase(); paso = InventariosBLL.Guardar(inventario); } inventario = InventariosBLL.Buscar(1); double total; total = inventario.Valor; valortextBox.Text = total.ToString(); } catch (Exception) { } }