private void LoadTable() { cboRole.DropDownStyle = ComboBoxStyle.DropDownList; lsvAccount.Items.Clear(); AccountDao AcDao = new AccountDao(); List <Account> ls = AcDao.GetAccountList(); foreach (Account a in ls) { ListViewItem item = lsvAccount.Items.Add(a.Id.ToString()); item.SubItems.Add(a.Username); if (a.UserRole == 1) { item.SubItems.Add("Nhân Viên"); } else { item.SubItems.Add("Quản Lý"); } item.SubItems.Add(a.EmployeeId.ToString()); } }