예제 #1
0
 protected void OnNameChange(object sender, NameChangeEventArgs args)
 {
     if (this.NameChange is NameChangeEventHandler nameChangeHandler)
     {
         nameChangeHandler(this, args);
     }
 }
예제 #2
0
 public void OnDispatcherNameChange(object sender, NameChangeEventArgs args)
 {
     Console.WriteLine($"Dispatcher's name changed to {args.Name}.");
 }