Exemplo n.º 1
0
 private static void StopRegistryMonitor()
 {
     if (monitor != null)
     {
         monitor.Stop();
         monitor.RegChanged -= new EventHandler(OnRegChanged);
         monitor.Error      -= new System.IO.ErrorEventHandler(OnRegMonError);
         monitor             = null;
     }
 }
Exemplo n.º 2
0
 private static void StopRegistryMonitor()
 {
     if (monitor != null)
     {
         monitor.Stop();
         monitor.RegChanged -= new EventHandler(OnRegChanged);
         monitor.Error -= new System.IO.ErrorEventHandler(OnRegMonError);
         monitor = null;
     }
 }