12345678910111213141516171819202122 |
- using System;
- using System.ComponentModel;
- namespace Localization
- {
- /// <summary>
- /// Base class implementing INotifyPropertyChanged
- /// </summary>
- public class NotifyPropertyChangedBase: INotifyPropertyChanged
- {
- public event PropertyChangedEventHandler PropertyChanged;
- protected void OnPropertyChanged(string name)
- {
- var handler = PropertyChanged;
- if (handler != null)
- {
- handler(this, new PropertyChangedEventArgs(name));
- }
- }
- }
- }
|