Exemplo n.º 1
0
 public void AddStatistik()
 {
     for (int i = 0; i < reliase.Count; i++)
     {
         Registr registr = new Registr();
         registr.day      = Shop.dateInShop;
         registr.name     = reliase[i].name;
         registr.quantity = reliase[i].quantity;
         registr.price    = reliase[i].price;
         Statistics.statisticList.Add(registr);
     }
 }
Exemplo n.º 2
0
        public void AddStatistic(Buyer buyer)
        {
            Registr registr = new Registr();

            for (int i = 0; i < buyer.buyerProductList.Count; i++)
            {
                registr.day      = dateInShop;
                registr.name     = buyer.buyerProductList[i].name;
                registr.quantity = 1;
                registr.price    = buyer.buyerProductList[i].price;
                statistics.statisticList.Add(registr);
            }
        }