Esempio n. 1
0
        /// <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);
        }
Esempio n. 2
0
        /// <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);
            }
        }