|
#region Revision History
//**********************************************************************//
// CtrlSoft, Copyright �2001-2007, All rights reserved.
//
// PropertyChangeTrackingObject.cs
//
// Description:
// - [TODO: Write the purpose of PropertyChangeTrackingObject.cs.]
//
// Created On: 7/03/2007 6:28:06 PM
// Created By: Igor V. Velikorossov <mailto:igor@ctrlsoft.net>
//**********************************************************************//
#endregion
using System;
using System.ComponentModel;
namespace Ctrlsoft.Windows.Forms
{
/// <summary>
/// Represents a base class which notifies clients of property value changes.
/// </summary>
[Serializable]
public abstract class PropertyChangeTrackingObject : INotifyPropertyChanged
{
/// <summary>
/// Occurs after the value of a property is changed.
/// </summary>
public event PropertyChangedEventHandler PropertyChanged;
/// <summary>
/// Raises <see cref="PropertyChanged"/> event.
/// </summary>
/// <param name="propertyName">Name of the property changed.</param>
protected virtual void OnPropertyChanged(string propertyName)
{
if (this.PropertyChanged != null)
this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
}
}
}
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.