Mercurial > silverbladetech
view Chronosv2/source/Model/UserLogin.cs @ 21:dfc81f8bb838
working version for sttocks except ui within metrowpf
author | adminsh@apollo |
---|---|
date | Tue, 20 Mar 2012 15:07:31 +0000 |
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 } }