示例#1
0
        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;
        }
示例#2
0
        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;
        }
示例#3
0
 public static void CarAboutToBlow(object sender, CarGenericArgs e)
 {
     Console.WriteLine($"   {e.msg} at {e.time}");
 }