示例#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}.");
 }