Beispiel #1
0
 private static void SecondCarSpeedWatcher(object sender, CarSpeedChangedEventArgs e) // Event Handler
 {
     Console.WriteLine($"Operation: {sender}\tSecond Watcher: Current Speed is {e.CurrentSpeed}");
 }
Beispiel #2
0
 private static void FirstCarSpeedWatcher(object sender, CarSpeedChangedEventArgs e) // Event Handler
 {
     Console.WriteLine($"Operation: {sender}\tFirst Watcher: speed went from {e.PreviousSpeed} km/h to {e.CurrentSpeed} km/h");
 }