private void btnGetAccountControlType_Click(object sender, EventArgs e) { try { AccountService.credential accountcredential = null; accountcredential = GetAccountCredential(); string identifierType = string.Empty; if (accountcredential != null) { identifierType = accountClient.getAccountControlType(accountcredential, txtGetAccountNumberControlType.Text, txtGetIdentifierType.Text); } txtReturnIdentifierType.Text = identifierType; } catch (FaultException <AccountService.UnableToAuthenticateException> unableAutExcp) { MessageBox.Show(Messages.UnableToAuthenticateExceptionMessage + " " + unableAutExcp.Message); } catch (FaultException <AccountService.InvalidCredentialException> invCredExc) { MessageBox.Show(Messages.InvalidCredentialExceptionMesssage + " " + invCredExc.Message); } catch (FaultException <AccountService.InvalidIdentifierTypeException> invIdentTypexc) { MessageBox.Show(Messages.InvalidIdentifierTypeExceptionMessage + " " + invIdentTypexc.Message); } catch (Exception exc) { MessageBox.Show(exc.Message); } }