lixiaojun
2024-06-18 e0d4a08b91298650f34c39986c40b15acb6663a2
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
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; }
        }
 
    }
}