|
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace CustomDocumentPaginator
{
public class PersonViewModel : BaseViewModel
{
public PersonViewModel() { }
public PersonViewModel(string name, string address, bool happy)
{
this.Name = name;
this.Address = address;
this.Happy = happy;
}
private string _name;
public string Name
{
get { return _name; }
set
{
SetValue(ref _name, value, "Name");
}
}
private string _address;
public string Address
{
get { return _address; }
set
{
SetValue(ref _address, value, "Address");
}
}
private bool _happy;
public bool Happy
{
get { return _happy; }
set
{
SetValue(ref _happy, value, "Happy");
}
}
}
}
|
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.
Good all rounder (I like to say) with over 12 years development experience in a range languages including Visual C++ , Visual Basic 4/5/6, and now my main area of focus C#.