diff SilverlightGlimpse/SilverlightValidation/Models/UserModel.cs @ 69:a0bcd783e612

Latest work
author Steven Hollidge <stevenhollidge@hotmail.com>
date Mon, 23 Apr 2012 11:06:10 +0100
parents
children dd6bcd2535b6
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/SilverlightGlimpse/SilverlightValidation/Models/UserModel.cs	Mon Apr 23 11:06:10 2012 +0100
@@ -0,0 +1,25 @@
+using System;
+using System.ComponentModel;
+using SilverlightValidation.Interfaces;
+
+namespace SilverlightValidation.Models
+{
+    public class UserModel : IUserModel, ICloneable<UserModel>
+    {
+        public string Username { get; set; }
+        public string Email { get; set; }
+        public string Password { get; set; }
+        public DateTime? DateOfBirth { get; set; }
+        public string Description { get; set; }
+
+        public static UserModel Create()
+        {
+            return new UserModel() { Username = "", Email = "", Password = "", DateOfBirth = null, Description = "" };
+        }
+
+        public UserModel Clone()
+        {
+            return (UserModel) this.MemberwiseClone(); 
+        }
+    }
+}