Exemple #1
0
        public void LoadListSale()
        {
            List <Sale> sales = SaleServices.getAllSales();

            ListAllSale.Clear();
            foreach (Sale sale in sales)
            {
                listAllSale.Add(new()
                {
                    Sale = sale,
                    QuantityOfProduct = SaleServices.getNumberProductOneSale(sale.SaleId),
                    Total             = SaleServices.getTotalOneSale(sale.SaleId)
                });
            }
        }