public Initial() { InitializeComponent(); ReadFile(); string[] Id = { }, na = { }, Ic = { }, Pw = { }, money = { }; Id = ID.ToArray(); na = name.ToArray(); Ic = IDcard.ToArray(); Pw = PW.ToArray(); money = Money.ToArray(); for (int i = 0; i < Id.Length; i++) { Account account = new Account(Id[i], int.Parse(Pw[i]), na[i], Ic[i]); account.money = int.Parse(money[i]); accounts.Add(account); } }