Mercurial > silverbladetech
view Chronosv2/source/Model/UserLogin.cs @ 13:87905693f506
SCC: TFS to HG
author | stevenh7776 stevenhollidge@hotmail.com |
---|---|
date | Tue, 21 Feb 2012 17:49:06 +0700 |
parents | 443821e55f06 |
children |
line wrap: on
line source
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 } }