Globals.RegistryAccess.getNames C# (CSharp) Method

getNames() public method

public getNames ( ) : string[]
return string[]
        public string[] getNames()
        {
            if (!_isOpen) return null;

            return the_Reg.GetValueNames();
        }

Usage Example

示例#1
0
 public static void populate()
 {
     if (pluginInfo.Names.Count < 1)
     {
         RegistryAccess ra = new RegistryAccess(Microsoft.Win32.Registry.CurrentUser,
                                  RegistryAccess.RegPaths.Halo2 + "PluginSets\\");
         if (ra.isOpen)
         {
             pluginInfo.Names = new List<string>(ra.getNames());
             pluginInfo.Paths = new List<string>(Array.ConvertAll(ra.getValues(),new Converter<object,string>(Convert)));
             int i = pluginInfo.Names.IndexOf("");
             if (i != -1)
             {
                 pluginInfo.Names.RemoveAt(i);
                 pluginInfo.Paths.RemoveAt(i);
             }
         }
         else
         {
             pluginInfo.Names.Add("Default");
             pluginInfo.Paths.Add(Prefs.pathPluginsFolder);
         }
         ra.CloseReg();
     }
 }
All Usage Examples Of Globals.RegistryAccess::getNames