comparison delete me/SilverlightValidation/Models/UserModel.cs @ 59:3591c26bd63e

MVVMLight added
author Steven Hollidge <stevenhollidge@hotmail.com>
date Sat, 21 Apr 2012 19:20:28 +0100
parents
children
comparison
equal deleted inserted replaced
58:241e2f22ed3c 59:3591c26bd63e
1 using System;
2 using System.ComponentModel;
3 using SilverlightValidation.Interfaces;
4
5 namespace SilverlightValidation.Models
6 {
7 public class UserModel : IUserModel, ICloneable<UserModel>
8 {
9 public string Username { get; set; }
10 public string Email { get; set; }
11 public string Password { get; set; }
12 public DateTime? DateOfBirth { get; set; }
13 public string Description { get; set; }
14
15 public static UserModel Create()
16 {
17 return new UserModel() { Username = "", Email = "", Password = "", DateOfBirth = null, Description = "" };
18 }
19
20 public UserModel Clone()
21 {
22 return (UserModel) this.MemberwiseClone();
23 }
24 }
25 }