comparison 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
comparison
equal deleted inserted replaced
9:904a9faadf8b 10:443821e55f06
1 using System.ComponentModel;
2 using Chronos.Presentation.ViewModel;
3
4 namespace Chronos.Model
5 {
6 public sealed class UserLogin
7 : ObservableObject, IDataErrorInfo
8 {
9 #region · Fields ·
10
11 private string userId;
12 private string password;
13 private int workYear;
14
15 #endregion
16
17 #region · IDataErrorInfo Members ·
18
19 public string Error
20 {
21 get { return null; }
22 }
23
24 public string this[string columnName]
25 {
26 get { return null; }
27 }
28
29 #endregion
30
31 #region · Properties ·
32
33 public string UserId
34 {
35 get { return this.userId; }
36 set
37 {
38 if (this.userId != value)
39 {
40 this.userId = value;
41 this.NotifyPropertyChanged(() => UserId);
42 }
43 }
44 }
45
46 public string Password
47 {
48 get { return this.password; }
49 set
50 {
51 if (this.password != value)
52 {
53 this.password = value;
54 this.NotifyPropertyChanged(() => Password);
55 }
56 }
57 }
58
59 public int WorkYear
60 {
61 get { return this.workYear; }
62 set
63 {
64 if (this.workYear != value)
65 {
66 this.workYear = value;
67 this.NotifyPropertyChanged(() => WorkYear);
68 }
69 }
70 }
71
72 #endregion
73
74 #region · Constructors ·
75
76 public UserLogin()
77 {
78 }
79
80 #endregion
81 }
82 }