diff Chronosv2/source/Model/UserLogin.cs @ 10:443821e55f06

Initial cleaned up add from Codeplex files
author stevenh7776 stevenhollidge@hotmail.com
date Tue, 21 Feb 2012 17:25:44 +0700
parents
children
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/Chronosv2/source/Model/UserLogin.cs	Tue Feb 21 17:25:44 2012 +0700
@@ -0,0 +1,82 @@
+using System.ComponentModel;
+using Chronos.Presentation.ViewModel;
+
+namespace Chronos.Model
+{
+    public sealed class UserLogin
+        : ObservableObject, IDataErrorInfo
+    {
+        #region · Fields ·
+
+        private string  userId;
+        private string  password;
+        private int     workYear;
+
+        #endregion
+
+        #region · IDataErrorInfo Members ·
+
+        public string Error
+        {
+            get { return null; }
+        }
+
+        public string this[string columnName]
+        {
+            get { return null; }
+        }
+
+        #endregion
+
+        #region · Properties ·
+
+        public string UserId
+        {
+            get { return this.userId; }
+            set
+            {
+                if (this.userId != value)
+                {
+                    this.userId = value;
+                    this.NotifyPropertyChanged(() => UserId);
+                }
+            }
+        }
+
+        public string Password
+        {
+            get { return this.password; }
+            set
+            {
+                if (this.password != value)
+                {
+                    this.password = value;
+                    this.NotifyPropertyChanged(() => Password);
+                }
+            }
+        }
+
+        public int WorkYear
+        {
+            get { return this.workYear; }
+            set
+            {
+                if (this.workYear != value)
+                {
+                    this.workYear = value;
+                    this.NotifyPropertyChanged(() => WorkYear);
+                }
+            }
+        }
+
+        #endregion
+
+        #region · Constructors ·
+
+        public UserLogin()
+        {
+        }
+
+        #endregion
+    }
+}