Example #1
0
 public static void CarIsAlmostDoomed(object sender, CarEventArgs e)
 {
     Console.WriteLine("=> Critical Message from Car: {0}", e.msg);
 }
Example #2
0
 public static void CarAboutToBlow(object sender, CarEventArgs e)
 {
     Console.WriteLine(e.msg);
 }
Example #3
0
 public static void CarExploded(object sender, CarEventArgs e)
 {
     Console.WriteLine(e.msg);
 }
Example #4
0
 private static void CarIsAlmostDoomed(object sender, CarEventArgs e)
 {
     Console.WriteLine("{0} says: {1}", sender, e.msg);
 }
Example #5
0
 private static void C1_AboutToBlow(object sender, CarEventArgs e)
 {
     Console.WriteLine(string.Format($"{((Car)sender).PetName} {e.msg}"));
 }
Example #6
0
 public static void CarExploded(object sender, CarEventArgs e)
 {
     Console.WriteLine(e.msg);
 }
Example #7
0
 public static void CarIsAlmostDoomed(object sender, CarEventArgs e)
 {
     Console.WriteLine("=> Critical Message from Car: {0}", e.msg);
 }
Example #8
0
 public static void CarAboutToBlow(object sender, CarEventArgs e)
 {
     Console.WriteLine(e.msg);
 }