|
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Mvvm3_Basic.Model
{
public class Contact : INotifyPropertyChanged
{
private string _guid;
public string CGuid { get { return _guid; } set { _guid = value; CP("CGuid"); } }
private string _name;
public string Name { get { return _name; } set { _name = value; CP("Name"); } }
private string _email;
public string Email { get { return _email; } set { _email = value; CP("Email"); } }
private void CP(string s)
{
if (PropertyChanged != null)
PropertyChanged(this, new PropertyChangedEventArgs(s));
}
public event PropertyChangedEventHandler PropertyChanged;
}
}
|
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.