using System.Configuration;
using Yw.Untity;
namespace PBS.Desktop
{
///
/// 用户设置
///
internal sealed class UserLoginSettings : ApplicationSettingsBase
{
///
/// 登录名称
///
[UserScopedSetting]
public string LoginName
{
get { return (string)this[nameof(LoginName)]; }
set { this[nameof(LoginName)] = value; }
}
///
/// 登录密码
///
[UserScopedSetting]
public string Password
{
get { return ((string)this[nameof(Password)])?.DecryptByBase64(); }
set { this[nameof(Password)] = value?.EncryptByBase64(); }
}
///
/// 过期时间
///
[UserScopedSetting]
public DateTime? ExpireTime
{
get { return (DateTime?)(this[nameof(ExpireTime)]); }
set { this[nameof(ExpireTime)] = value; }
}
}
}