示例#1
0
 public virtual void AddSubKey(RegistryKeyInfo parent, RegistryKeyInfo child)
 {
     // I think only the provider should be adding subkeys to the parent
     // so parent calls this on any add and this can object?
     // or actually no maybe other things can add, but provider would need to write those changes back to the source
     throw new NotImplementedException();
 }
示例#2
0
 public RegistryKeyInfo(RegistryProvider provider, RegistryKeyInfo parent, string name)
 {
     Provider = provider;
     _Name    = name;
     Parent   = parent;
     _SubKeys = new Dictionary <string, RegistryKeyInfo>();
 }
示例#3
0
 public abstract void SetKeyName(RegistryKeyInfo key, string name);
示例#4
0
 public void AddSubKey(RegistryKeyInfo subKey)
 {
     this.Provider.AddSubKey(this, subKey);
     this._SubKeys.Add(subKey.Name, subKey);
 }
示例#5
0
 public RegistryValueInfo(RegistryKeyInfo key, string name)
 {
     _Name = name;
     _Key  = key;
 }
示例#6
0
 public RegistryDwordInfo(RegistryKeyInfo key, string name, uint value)
     : base(key, name)
 {
     _Value = value;
     Type   = Microsoft.Win32.RegistryValueKind.DWord;
 }