Exemplo n.º 1
0
        private void frmCapNhatSach_Load(object sender, EventArgs e)
        {
            bdsTacGia.DataSource     = tgBUS.LayDanhSach();
            bdsTheLoai.DataSource    = tlBUS.LayDanhSach();
            bdsNhaXuatBan.DataSource = nxbBUS.LayDanhSach();
            SachDTO sDTO = sBUS.LaySachTheoMa(masach);

            txtMaSach.Text              = masach.ToString();
            txtTen.Text                 = sDTO.Ten;
            cboTacGia.SelectedValue     = sDTO.MaTacGia;
            cboTheLoai.SelectedValue    = sDTO.MaTheLoai;
            cboNhaXuatBan.SelectedValue = sDTO.MaNXB;
            dtpNgayXuatBan.Value        = sDTO.NgayXuatBan;
            txtGhiChu.Text              = sDTO.GhiChu;
        }