Exemple #1
0
 public void OnExcededMileage(object sender, CarEventArgs e)
 {
     Car car = (Car)sender;
     car.isBroken = true; 
     Console.WriteLine(e.msg);
 }
Exemple #2
0
 public void OnOutOfFuel(object sender, CarEventArgs e)
 {
     Console.WriteLine(e.msg);
 }