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