Exemple #1
0
        public string CleanDataFromRegistry(string name, string Path, string states)
        {
            var value = "";

            value = RegistryFunctions.GlobalReadFromRegistry(name, Path);
            if (!string.IsNullOrEmpty(value))
            {
                return(value);
            }
            return(states);
        }
Exemple #2
0
 public void GetDataFromRegistry(string Key)
 {
     if (Key == null)
     {
         throw new ArgumentNullException("Key");
     }
     try
     {
         RegistryFunctions.GlobalReadFromRegistry(Key,
                                                  AcadSettings.RegistryPath);
     }
     catch (Exception ex)
     {
         MessengerManager.MessengerManager.AddLog(ex.Message);
     }
 }