view 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 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
    }
}