Пример #1
0
 private static void OnCarEngineEvent (object sender, CarEventArgs e) {
     Console.WriteLine ("***** Message from car *****");
     Console.WriteLine ("\t{0} says => {1}", sender.GetType ().Name, e.msg);
     Console.WriteLine ("****************************\n");
 }
Пример #2
0
 private static void OnCarEngineEvent(object sender, CarEventArgs e)
 {
     Console.WriteLine("***** Message from car *****");
     Console.WriteLine("\t{0} says => {1}", sender.GetType().Name, e.msg);
     Console.WriteLine("****************************\n");
 }