Ejemplo n.º 1
0
 private void SaveRegister()
 {
     try
     {
         RegistryManager registry = new RegistryManager();
         if (_checkAutoconnect.Checked)
         {
             registry.SaveCredencials(_ctrEmail.Text, _ctrPassword.Text, _checkAutoconnect.Checked);
         }
         else
         {
             registry.ClearCredentials();
         }
     }
     catch { }   // do not throw exception if something went wrong with the Registry
 }
Ejemplo n.º 2
0
 private void SaveRegister(string email, string password, bool autoconnect)
 {
     try
     {
         RegistryManager registry = new RegistryManager();
         if (autoconnect)
         {
             registry.SaveCredencials(email, password, autoconnect);
         }
         else
         {
             registry.ClearCredentials();
         }
     }
     catch { }   // do not throw exception if something went wrong with the Registry
 }