Beispiel #1
0
        private void MaintainRegistrySetting(RegistrySetting registrySetting)
        {
            RegistryChangeMonitor monitor = RegistryChangeMonitors.ContainsKey(registrySetting.FullKeyPath)
                ? RegistryChangeMonitors[registrySetting.FullKeyPath]
                : null;

            if (monitor == null)
            {
                monitor          = new RegistryChangeMonitor(registrySetting);
                monitor.Changed += RegistrySettingChanged;
                monitor.Start();
                RegistryChangeMonitors.Add(registrySetting.FullKeyPath, monitor);
            }
            else
            {
                monitor.AddRegistrySetting(registrySetting);
            }
        }
 public RegistryChangeEventArgs(RegistryChangeMonitor monitor)
 {
     this._monitor = monitor;
 }