예제 #1
0
 public static void GiveInfo(Product chosenProduct)
 {
     Console.Clear();
     Console.WriteLine($"{"Name",6} : {chosenProduct.Name,11}");
     Console.WriteLine($"{"Price",6} : {chosenProduct.Price,9}kr");
     Console.WriteLine($"{"Volume",6} : {chosenProduct.DisplayVolume(),11}");
     Console.WriteLine($"{"Amount",6} : {chosenProduct.Amount,11}");
 }
예제 #2
0
 public static void PresentOwnedProduct(Product ownedProduct)
 {
     Console.Clear();
     Console.WriteLine("--------------------");
     Console.WriteLine($"{"Name",6} : {ownedProduct.Name,11}");
     Console.WriteLine($"{"Volume",6} : {ownedProduct.DisplayVolume(),11}");
     Console.WriteLine($"{"Amount",6} : {ownedProduct.Amount,11}");
     Console.WriteLine("--------------------");
 }