private void btnGetAccountNumber_Click(object sender, EventArgs e) { try { AccountService.credential accountcredential = null; accountcredential = GetAccountCredential(); string[] accountNumbersList = new string[] { }; if (accountcredential != null) { accountNumbersList = accountClient.getAccountNumbers(accountcredential); } lstAccountNumbers.DataSource = accountNumbersList; } catch (FaultException <AccountService.UnableToAuthenticateException> unableAutExcp) { MessageBox.Show(Messages.UnableToAuthenticateExceptionMessage + " " + unableAutExcp.Message); } catch (FaultException <AccountService.InvalidCredentialException> invCredExc) { MessageBox.Show(Messages.InvalidCredentialExceptionMesssage + " " + invCredExc.Message); } catch (Exception exc) { MessageBox.Show(exc.Message); } }