Пример #1
0
 protected virtual void OnNameChange(NameChangeEventArgs args)
 {
     if (this.NameChange != null)
     {
         this.NameChange(this, args);
     }
 }
Пример #2
0
 public void OnDispatcherNameChange(object sender, NameChangeEventArgs args)
 {
     Console.WriteLine($"{sender.GetType().Name}'s name changed to {args.Name}.");
 }