public void RaisePayment(object sourcre, PaymentMadeEventArgs e) { Console.BackgroundColor = ConsoleColor.DarkBlue; var SortedCart = SortCartByProductBarcode(e.Cart); System.Console.WriteLine(); foreach (var product in SortedCart) { System.Console.WriteLine(product.ToFormattedString()); } System.Console.WriteLine(); Console.ResetColor(); }
public void RaisePayment(object sourcre, PaymentMadeEventArgs e) { Cart = new List <IProduct>(); }