public static string getIBAN(string _bankCodeNumber, string _bankAccountNumber) { index = CountryList.getCountryIndex(true); bankCodeNumber = _bankCodeNumber; bankAccountNumber = _bankAccountNumber; return(CountryList.getCountryCode(index) + getCheckDigit() + getBBAN()); }
private static string getIBANDividend() { string numericCountryCodeValue = ""; foreach (char letter in CountryList.getCountryCode(index)) { numericCountryCodeValue += CountryList.getNumericCountryCodeValue(letter); } return(getBBAN() + numericCountryCodeValue + "00"); }
public void add(string _name, bool _isCustomerProfile) { checkForFile(); int pLength; string path; if (_isCustomerProfile) { pLength = customerProfileLength; path = MainViewModel.customerPath; } else { pLength = profileLength; path = MainViewModel.profilePath; } string[] newProfileLines = new string[pLength]; for (int i = 0; i < pLength; i++) { if (i == 0) { newProfileLines[i] += hasher.encrypt(_name, path); } else if (i == 8) { newProfileLines[i] = hasher.encrypt(CountryList.getCountryIndex().ToString(), path); } else { newProfileLines[i] = ""; } } if (!string.IsNullOrEmpty(File.ReadAllText(path))) { File.AppendAllText(path, "\n"); } File.AppendAllText(path, string.Join(";", newProfileLines)); }