NotificationObject.cs 539 B

123456789101112131415161718192021
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.ComponentModel;
  6. namespace AGV_WPF.Models
  7. {
  8. public class NotificationObject : INotifyPropertyChanged
  9. {
  10. public event PropertyChangedEventHandler PropertyChanged;
  11. public void RaisePropertyChanged(string propertyName)
  12. {
  13. if (this.PropertyChanged != null)
  14. {
  15. this.PropertyChanged.Invoke(this, new PropertyChangedEventArgs(propertyName));
  16. }
  17. }
  18. }
  19. }