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); } }
public void ProductDiscountChanged(object source, DiscountHandler e) { JournalEntryProduct je = new JournalEntryProduct(e.Message, e.Price, e.Discount, e.StorageLife, e.Product); JournalEntryProducts.Add(je); }