private void HienThiDSSach()
        {
            SachBLL     sacbll = new SachBLL();
            List <Sach> dsSach = sacbll.LayAllToanBoSachTrong();

            lvCMTCDSSach.Items.Clear();
            foreach (Sach sac in dsSach)
            {
                ListViewItem lvi = new ListViewItem(sac.ID + "");
                lvi.SubItems.Add(sac.TenSach);
                lvCMTCDSSach.Items.Add(lvi);
            }
        }
Beispiel #2
0
        public void HienThiDanhSachSach()
        {
            SachBLL     sacBLL  = new SachBLL();
            List <Sach> dsdsach = sacBLL.LayAllToanBoSachTrong();

            lvPMSTSach.Items.Clear();
            foreach (Sach scBLL in dsdsach)
            {
                ListViewItem lvi = new ListViewItem(scBLL.ID + "");
                lvi.SubItems.Add(scBLL.TenSach);
                lvi.SubItems.Add(scBLL.TrangThai);
                lvPMSTSach.Items.Add(lvi);
            }
        }