/// <summary>
        /// Loads all values from the registry key.
        /// </summary>
        private void LoadKeyValues(RegistryKey key, string keyName)
        {
            RegistryConfig config = new RegistryConfig(keyName, this);

            config.Key = key;

            string[] values = key.GetValueNames();
            foreach (string value in values)
            {
                config.Add(value, key.GetValue(value).ToString());
            }
            this.Configs.Add(config);
        }
        /// <summary>
        /// Loads all values from the registry key.
        /// </summary>
        private void LoadKeyValues(RegistryKey key, string keyName)
        {
            var config = new RegistryConfig(keyName, this)
            {
                Key = key
            };

            var values = key.GetValueNames();

            foreach (var value in values)
            {
                config.Add(value, key.GetValue(value).ToString());
            }
            Configs.Add(config);
        }
示例#3
0
        /// <summary>
        /// Loads all values from the registry key.
        /// </summary>
        private void LoadKeyValues(RegistryKey key, string keyName)
        {
            RegistryConfig config = new RegistryConfig (keyName, this);
            config.Key = key;

            string[] values = key.GetValueNames ();
            foreach (string value in values)
            {
                config.Add (value, key.GetValue (value).ToString ());
            }
            this.Configs.Add (config);
        }
示例#4
0
        /// <summary>
        /// Loads all values from the registry key.
        /// </summary>
        private void LoadKeyValues(RegistryKey key, string keyName) {
            var config = new RegistryConfig(keyName, this) { Key = key };

            var values = key.GetValueNames();
            foreach(var value in values) {
                config.Add(value, key.GetValue(value).ToString());
            }
            Configs.Add(config);
        }