using System;
|
using System.Configuration;
|
using Yw.Untity;
|
|
namespace HStation.Desktop
|
{
|
sealed class UserLoginSettings : ApplicationSettingsBase
|
{
|
[UserScopedSetting]
|
public string LoginName
|
{
|
get { return (string)this["LoginName"]; }
|
set { this["LoginName"] = value; }
|
}
|
|
[UserScopedSetting]
|
public string Password
|
{
|
get { return ((string)this["Password"])?.DecryptByBase64(); }
|
set { this["Password"] = value?.EncryptByBase64(); }
|
}
|
|
[UserScopedSetting]
|
public DateTime? ExpireTime
|
{
|
get { return (DateTime?)(this["ExpireTime"]); }
|
set { this["ExpireTime"] = value; }
|
}
|
|
}
|
}
|