Beispiel #1
0
        private void ucTiepNhanSachMoi_Load(object sender, EventArgs e)
        {
            cboTheLoaiSach.DataSource    = xldl.ChonTheLoaiSach_Select(dl);
            cboTheLoaiSach.DisplayMember = "Ten_TheLoaiSach";
            cboTheLoaiSach.ValueMember   = "ID_TheLoaiSach";

            txtGioiHanXuatBan.DataBindings.Clear();

            txtGioiHanXuatBan.DataBindings.Add("Text", xldl.LayGioiHanXuatBan_Select(dl), "NamXuatBan");

            cboTacGia.DataSource    = xldl.ChonTacGiaSach_Select(dl);
            cboTacGia.DisplayMember = "Ten_TacGia";
            cboTacGia.ValueMember   = "ID_TacGia";

            dtgSach.DataSource = xldl.Sach_Select(dl);
        }