public ExpiredException(Product p) { Origin = p.Name; }
public BrokenException(Product p) { Origin = p.Name; }
public NotAvailableException(Product p) { Origin = p.Name; }
public static void Transfer(Product p) { Console.WriteLine($"Product type:\t{p.GetType()}"); Console.WriteLine("Operation:\tTransfer"); ++Statistics.Transfer; }
public static void WriteOff(Product p) { Console.WriteLine($"Product type:\t{p.GetType()}"); Console.WriteLine("Operation:\tWrite-Off"); ++Statistics.WriteOff; }
public static void Realization(Product p) { Console.WriteLine($"Product type:\t{p.GetType()}"); Console.WriteLine("Operation:\tRealization"); ++Statistics.Realization; }
public static void Income(Product p) { Console.WriteLine($"Product type:\t{p.GetType()}"); Console.WriteLine("Operation:\tIncome"); ++Statistics.Income; }