static void OnNameChanged2(object sender, NameChangedEventArgs args) { Console.WriteLine("****"); }
static void ChangedName(object sender, NameChangedEventArgs args) { Console.WriteLine($"Changed name to {args.NewName}"); }
static void OnNameChanged(object sender, NameChangedEventArgs args) { Console.WriteLine($"Gradebook changing name from {args.existingName} to new name {args.newName}"); }
static void ChangingName(object sender, NameChangedEventArgs args) { Console.WriteLine($"Try changing name from {args.ExistingName} to {args.NewName}"); }
static void OnNameChanged2(object sender, NameChangedEventArgs args) { //Using an interpolated string expression: //Creates a string by replacing the contained expression(s) Console.WriteLine("************************************************************"); }
//Delegate Events static void OnNameChanged(object sender, NameChangedEventArgs args) { //Using an interpolated string expression: //Creates a string by replacing the contained expression(s) Console.WriteLine($"Grade book changed name from {args.existingName} to {args.newName}."); }
static void OnNameChanged2(object sender, NameChangedEventArgs args) { Console.WriteLine("Alert! Grade book name changed!"); }
static void OnNameChanged(object sender, NameChangedEventArgs args) { Console.WriteLine($"Grade book name changed from {args.OldName} to {args.NewName}"); }