public static void CarIsAlmostDoomed(object sender, CarGenericArgs e) { ConsoleColor fore = Console.ForegroundColor; Console.ForegroundColor = ConsoleColor.Cyan; Console.WriteLine($"=> Critical Message from Car: {e.msg} at {e.time}"); Console.ForegroundColor = fore; }
public static void CarExploded(object sender, CarGenericArgs e) { ConsoleColor fore = Console.ForegroundColor; Console.ForegroundColor = ConsoleColor.DarkYellow; Console.WriteLine($" {e.msg} at {e.time}"); Console.ForegroundColor = fore; }
public static void CarAboutToBlow(object sender, CarGenericArgs e) { Console.WriteLine($" {e.msg} at {e.time}"); }