Exemplo n.º 1
0
        private void ProfileBankAccountNumberTextBox_TextChanged(object sender, TextChangedEventArgs e)
        {
            mainViewModel.profileBankAccountNumber = ProfileBankAccountNumberTextBox.Text;

            if (ProfileBankAccountNumberTextBox.Text.Length == ProfileBankAccountNumberTextBox.MaxLength && ProfileCountryListComboBox.SelectedIndex != -1)
            {
                ProfileIBANTextBox.Text = IBANBuilder.formatIBAN(IBANBuilder.getIBAN(ProfileBankCodeNumberTextBox.Text, ProfileBankAccountNumberTextBox.Text));
            }
        }
Exemplo n.º 2
0
        private void loadBankInformation()
        {
            List <string> bankInformation = BankList.getBankInformation(ProfileBankListComboBox.Text);

            if (bankInformation != null)
            {
                if (bankInformation.Count == 2)
                {
                    ProfileBankCodeNumberTextBox.Text = bankInformation[0];
                    ProfileBICTextBox.Text            = bankInformation[1];

                    if (ProfileBankAccountNumberTextBox.Text.Length == ProfileBankAccountNumberTextBox.MaxLength && ProfileCountryListComboBox.SelectedIndex != -1)
                    {
                        ProfileIBANTextBox.Text = IBANBuilder.formatIBAN(IBANBuilder.getIBAN(ProfileBankCodeNumberTextBox.Text, ProfileBankAccountNumberTextBox.Text));
                    }
                }
            }
        }