Exemplo n.º 1
0
 public void ProductStorageLifeEnd(object source, DiscountHandler e)
 {
     if (e.StorageLife == 0)
     {
         JournalEntryProduct je = new JournalEntryProduct(e.Message, e.Price, e.Discount, e.StorageLife, e.Product);
         DeadProducts.Add(je);
     }
 }
Exemplo n.º 2
0
        public void ProductDiscountChanged(object source, DiscountHandler e)
        {
            JournalEntryProduct je = new JournalEntryProduct(e.Message, e.Price, e.Discount, e.StorageLife, e.Product);

            JournalEntryProducts.Add(je);
        }