|
using System;
namespace WpfStepByStep1
{
public class Contact : ViewModelEntity
{
public Contact()
{
}
protected string name;
protected string email;
protected string phonenumber;
public string Name
{
get {return name;}
set
{
if(name != value)
{
name = value;
NotifyPropertyChanged("Name");
}
}
}
public string Email
{
get {return email;}
set
{
if(email != value)
{
email = value;
NotifyPropertyChanged("Email");
}
}
}
public string PhoneNumber
{
get {return phonenumber;}
set
{
if(phonenumber != value)
{
phonenumber = value;
NotifyPropertyChanged("PhoneNumber");
}
}
}
}
}
|
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.