|
namespace RegiRide.ViewModels
{
using RegiRide.Model;
public class AddressViewModel
{
private readonly Address address;
public AddressViewModel(Address address, WhichAddress whichAddress)
{
this.address = address;
this.WhichAddress = whichAddress;
}
public WhichAddress WhichAddress { get; set; }
public string StreetName
{
get
{
return address.Street;
}
set
{
address.Street = value;
}
}
public string Name
{
get
{
return address.Name;
}
set
{
address.Name = value;
}
}
public string PostalCode
{
get
{
return address.PostalCode;
}
set
{
address.PostalCode = value;
}
}
public string City
{
get
{
return address.City;
}
set
{
address.City = value;
}
}
public Address Model
{
get
{
return address;
}
}
}
}
|
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.
Patrick Kalkman is a senior Software Architect with more than 20 years professional development experience. He works for
SimpleTechture where he helps teams develop state of the art web applications.
Patrick enjoys writing his
blog. It discusses agile software development. Patrick can be reached at patrick@simpletechture.nl.
Published Windows 8 apps:
Published Windows Phone apps:
Awards:
Best Mobile article of March 2012
Best Mobile article of June 2012