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