Пример #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();
        }