/// <summary> /// Cоздание раздела в реестре у родителького Folder /// </summary> /// <param name="parent">родителький Folder</param> /// <param name="name">название раздела реестра</param> public Folder(Folder parent, string name) { path = parent.FullPath; this.name = name; folders = new FolderCollection(FullPath); options = new OptionCollection(FullPath); }
/// <summary> /// Cоздание раздела в реестре по указанному пути /// </summary> /// <param name="path">Путь в реестре</param> /// <param name="name">название раздела реестра</param> public Folder(string path, string name) { this.path = path; this.name = name; folders = new FolderCollection(FullPath); options = new OptionCollection(FullPath); }
public FolderCollection GetSavedFolders() { FolderCollection fc = new FolderCollection(this.FullPath); RegistryKey curUser = Registry.CurrentUser; RegistryKey key = curUser.OpenSubKey(this.FullPath, true); string[] subk = key.GetSubKeyNames(); if (subk != null) { for (int i = 0; i < subk.Length; i++) { fc.GetByNameForced(subk[i]); } } return(fc); }
public FolderEnumerator(FolderCollection fc) { this.fc = fc; }