diff --git a/AYA.SlnSynor/Atesa.Utilitarios/ObtieneParametros.cs b/AYA.SlnSynor/Atesa.Utilitarios/ObtieneParametros.cs index c755ac26d..e1898ce6e 100644 --- a/AYA.SlnSynor/Atesa.Utilitarios/ObtieneParametros.cs +++ b/AYA.SlnSynor/Atesa.Utilitarios/ObtieneParametros.cs @@ -12,22 +12,22 @@ namespace Atesa.Utilitarios private string key = @"SOFTWARE\\Parametros"; - public ObtieneParametros(string subkey = null) - { - try - { - this.key = string.IsNullOrWhiteSpace(subkey) ? this.key : string.Format(@"{0}\{1}", this.key, subkey); - RegistryKey key = RegistryKey.OpenBaseKey(RegistryHive.LocalMachine, Environment.Is64BitOperatingSystem ? RegistryView.Registry64 : RegistryView.Registry32); - if (key.OpenSubKey(this.key) == null) - { - key.CreateSubKey(this.key, RegistryKeyPermissionCheck.ReadWriteSubTree); - } - } - catch - { - throw new Exception("The registry key 'ParametrosProceso' does not exist and could not create it"); - } - } + // public ObtieneParametros(string subkey = null) + //{ + // try + // { + // this.key = string.IsNullOrWhiteSpace(subkey) ? this.key : string.Format(@"{0}\{1}", this.key, subkey); + // RegistryKey key = RegistryKey.OpenBaseKey(RegistryHive.LocalMachine, Environment.Is64BitOperatingSystem ? RegistryView.Registry64 : RegistryView.Registry32); + // if (key.OpenSubKey(this.key) == null) + // { + // key.CreateSubKey(this.key, RegistryKeyPermissionCheck.ReadWriteSubTree); + // } + // } + // catch + // { + // throw new Exception("The registry key 'ParametrosProceso' does not exist and could not create it"); + // } + //} public void AddValueKeyRegedit(string KeyStringName, string KeyStringValue, bool Encrypt) { try