Exemple #1
0
 static void OnNameChanged2(object sender, NameChangedEventArgs args)
 {
     Console.WriteLine("****");
 }
Exemple #2
0
 static void ChangedName(object sender, NameChangedEventArgs args)
 {
     Console.WriteLine($"Changed name to {args.NewName}");
 }
Exemple #3
0
 static void OnNameChanged(object sender, NameChangedEventArgs args)
 {
     Console.WriteLine($"Gradebook changing name from {args.existingName} to new name {args.newName}");
 }
Exemple #4
0
 static void ChangingName(object sender, NameChangedEventArgs args)
 {
     Console.WriteLine($"Try changing name from {args.ExistingName} to {args.NewName}");
 }
Exemple #5
0
 static void OnNameChanged2(object sender, NameChangedEventArgs args)
 {
     //Using an interpolated string expression:
     //Creates a string by replacing the contained expression(s)
     Console.WriteLine("************************************************************");
 }
Exemple #6
0
 //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}.");
 }
Exemple #7
0
 static void OnNameChanged2(object sender, NameChangedEventArgs args)
 {
     Console.WriteLine("Alert! Grade book name changed!");
 }
Exemple #8
0
 static void OnNameChanged(object sender, NameChangedEventArgs args)
 {
     Console.WriteLine($"Grade book name changed from {args.OldName} to {args.NewName}");
 }