public static bool MakeTransactionFromIdString(Bank bank, int amount, string from, string to, string description = "")
        {
            int frm = FinancialDataSupplier.FindAccountIndex(bank, from);
            int t   = FinancialDataSupplier.FindAccountIndex(bank, to);

            return(MakeTransaction(bank, amount, bank.AllAccounts[frm], bank.AllAccounts[t], description));
        }
 public static string CreateNewAccount(Bank bank, string id, int startMoney = 0)
 {
     string[] allIds = FinancialDataSupplier.AccountsIDs(bank);
     bank.AllAccounts.Add(new FinancialAccount(DataChecks.EnsureUnique(allIds, id), startMoney));
     OnNewAccountCreated?.Invoke(bank.AllAccounts[bank.AllAccounts.Count - 1].accountID);
     return(bank.AllAccounts[bank.AllAccounts.Count - 1].accountID);
 }