|
using System.ComponentModel;
namespace CLRBindingExample
{
class Class2 : INotifyPropertyChanged
{
private int m_Count;
public int IntCount
{
get { return m_Count; }
set
{
if (m_Count != value)
{
m_Count = value;
OnPropertyChanged("IntCount");
}
}
}
#region INotifyPropertyChanged
public event PropertyChangedEventHandler PropertyChanged;
public void OnPropertyChanged(string name)
{
if (PropertyChanged != null)
{
PropertyChanged(this, new PropertyChangedEventArgs(name));
}
}
#endregion
}
}
|
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.