public void CreateAccount() { Account acc = new Account(); acc.GenerateAccount(); AccountsList.Add(acc.AccountNo, acc); }