The whole EventPattern conform implementation of INotifyPropertyChanged.
Nothing special, just useful in daily business.
#region INotifyPropertyChanged Members
/// <summary>
/// Raises the propertyChangedEvent
/// </summary>
/// <param name="propertyName">Name of the property, which has been changed.</param>
private void onNotifyPropertyChanged(string propertyName)
{
PropertyChangedEventHandler handler = PropertyChanged;
if (handler != null)
{
handler(this, new PropertyChangedEventArgs(propertyName));
}
}
/// <summary>
/// Occurs when a property value changes.
/// </summary>
public event PropertyChangedEventHandler PropertyChanged;
#endregion
Kommentare zum Snippet