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); } }
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); } }