private void validateSecretKey() { // Log messages and update the Form's valid state depending on whether the provided S3 key is valid string error = ""; bool valid = ValidateProfile.SecretKey(TxtSecretAccessKey.Text, out error); ErrorMain.SetError(TxtSecretAccessKey, error); cvSave.MarkValidity(TxtSecretAccessKey, valid); }
private void validateName() { // Log messages and update the Form's valid state depending on whether the provided S3 key is valid string error = ""; bool valid = ValidateProfile.Name(TxtProfileName.Text, out error); ErrorMain.SetError(TxtProfileName, error); cvSave.MarkValidity(TxtProfileName, valid); }