Пример #1
0
        private void Refrescarbutton_Click(object sender, EventArgs e)
        {
            Inventarios inventario = InventariosBLL.Buscar(1);
            double      total      = inventario.Total;

            ValorTotaltextBox.Text = total.ToString();
        }
Пример #2
0
        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)
            {
            }
        }