예제 #1
0
        public void SetSession(SessionInfo info)
        {
            var data = JsonConvert.SerializeObject(info);

            Properties.Settings.Default.SessionEnc = Encryptions.Encrypt(data);
            Properties.Settings.Default.Save();
        }
예제 #2
0
        public void SetSessions(List <SessionInfo> sessions)
        {
            var value = JsonConvert.SerializeObject(sessions);

            value = Encryptions.Encrypt(value);
            Properties.Settings.Default.SessionEnc = value;
            Properties.Settings.Default.Save();
        }