Esempio n. 1
0
        private void btnClearAccountControlType_Click(object sender, EventArgs e)
        {
            try
            {
                AccountService.credential accountcredential = null;
                accountcredential = GetAccountCredential();

                if (accountcredential != null)
                {
                    accountClient.clearAccountControlType(accountcredential, txtAccountNumber.Text, txtIdentifierType.Text);
                }
            }
            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);
            }
        }