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 }
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 }