/// <summary> /// Raises the <see cref="E:PropertyChanged"/> event. /// </summary> /// <param name="propertyName"> /// Name of the property that changed. /// </param> /// <param name="oldValue">The old value.</param> /// <param name="newValue">The new value.</param> protected void OnPropertyChanged(String propertyName, Object oldValue, Object newValue) { PropertyNotificationEventArgs e = new PropertyNotificationEventArgs(propertyName, oldValue, newValue); OnPropertyChanged(e); }
/// <summary> /// Raises the <see cref="E:PropertyChanged"/> event. /// </summary> /// <param name="e"> /// The <see cref="PropertyNotificationEventArgs"/> instance /// containing the event data. /// </param> protected void OnPropertyChanged(PropertyNotificationEventArgs e) { PropertyChangedEventHandler temp = this.PropertyChanged; if (null != temp) { temp(this, e); } }