private void btnChangePassword_Click(object sender, EventArgs e) { if (txtPassword.Text != txtValidatePassword.Text) { MessageBox.Show("Passwords are not the same!"); } else { string password = Edge.Core.Utilities.Encryptor.Enc(txtPassword.Text); _dataLayer.ChangePasswords(_userID, password); } }