static void OnAgeError(object sender, AgeChanged e) { Console.WriteLine("Error! Incorrect value of age: {0}", e.newAge); Console.WriteLine(new string('=', 79)); }
static void OnAgeChanged(object sender, AgeChanged e) { Console.WriteLine("OnAgeChanged to {0}", e.newAge); Console.WriteLine(new string('=', 79)); }