Beispiel #1
0
        private UserConfig(UserConfig src)
        {
            foreach (var kvp in src.APIKeys)
            {
                var temp = new APIKey();

                temp.Initialize(kvp.Value.Protection !);
                temp.Value = kvp.Value.Value;

                APIKeys.Add(kvp.Key, temp);
            }
        }
Beispiel #2
0
        public void RestoreFrom(UserConfig src)
        {
            APIKeys.Clear();

            foreach (var kvp in src.APIKeys)
            {
                var temp = new APIKey();

                temp.Initialize(kvp.Value.Protection !);
                temp.Value = kvp.Value.Value;

                APIKeys.Add(kvp.Key, temp);
            }
        }