예제 #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");
 }