/// <summary> /// Function to check if the two passwords you entered were the same /// </summary> private void CheckPasswordMatch() { if (PasswordText.Equals(PasswordText1)) { ShowError = false; } else { ErrorText = "Passwords do not match."; ShowError = true; } }