private void updateListViewSan() { ArrayList dataList = SanBongBUS.getAllSan(); lvSanBong.Clear(); sanBongList.Clear(); foreach (SanBong sanBong in dataList) { if (!sanBong.dangThue) { lvSanBong.Items.Add(sanBong.tenSan, 0); sanBongList.Add(sanBong); } else { } } }
private void updateListViewSan() { ArrayList dataList = SanBongBUS.getAllSan(); lvSanBong.Clear(); sanBongList.Clear(); foreach (SanBong sanBong in dataList) { sanBongList.Add(sanBong); if (sanBong.dangThue) { lvSanBong.Items.Add(sanBong.tenSan, 1); } else { lvSanBong.Items.Add(sanBong.tenSan, 0); } } btSuaSan.Enabled = false; btXoaSan.Enabled = false; tabTinhTien.Enabled = false; }