예제 #1
0
 public bool Detach()
 {
     if (!this._bIsAttached)
     {
         return(true);
     }
     if (KPCONFIG.bIsViewOnly)
     {
         return(true);
     }
     _setDynamicRegistryKey(false);
     if (this.oAllConnectoids.UnhookAllConnections())
     {
         this._bIsAttached = false;
         KProxyApplication.OnKProxyDetach();
         this.WriteAutoProxyPACFile(false);
         return(true);
     }
     return(false);
 }