|
using System;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
namespace SilverlightUpdateChanges
{
public partial class Widget: object, System.ComponentModel.INotifyPropertyChanged
{
private string _ID;
private string _Name;
private string _Colour;
public string ID
{
get
{
return this._ID;
}
set
{
if ((object.ReferenceEquals(this._ID, value) != true))
{
this._ID = value;
this.RaisePropertyChanged("ID");
}
}
}
public string Name
{
get
{
return this._Name;
}
set
{
if ((object.ReferenceEquals(this._Name, value) != true))
{
this._Name = value;
this.RaisePropertyChanged("Name");
}
}
}
public string Colour
{
get
{
return this._Colour;
}
set
{
if ((object.ReferenceEquals(this._Colour, value) != true))
{
this._Colour = value;
this.RaisePropertyChanged("Colour");
}
}
}
public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged;
protected void RaisePropertyChanged(string propertyName)
{
System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged;
if ((propertyChanged != null))
propertyChanged(this, new System.ComponentModel.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.