Пример #1
0
 private void Store_Load(object sender, EventArgs e)
 {
     dgvSanPham.DataSource               = db.InfoSach();
     dgvSanPham.Columns[0].Visible       = false;
     (clbChuDe as ListBox).DataSource    = db.Tenchude();
     (clbChuDe as ListBox).DisplayMember = "TenChuDe";
     (clbChuDe as ListBox).ValueMember   = "MaChuDe";
 }
Пример #2
0
        private void ThemSach_Load(object sender, EventArgs e)
        {
            cbbNCC.DataSource    = db.TenNCC();
            cbbNCC.DisplayMember = "TenNCC";
            cbbNCC.ValueMember   = "MaNCC";

            cbbNXB.DataSource    = db.TenNXB();
            cbbNXB.DisplayMember = "TenNXB";
            cbbNXB.ValueMember   = "MaNXB";

            cbbTacGia.DataSource    = db.TenTacGia();
            cbbTacGia.DisplayMember = "TenTacGia";
            cbbTacGia.ValueMember   = "MaTacGia";

            cbbChuDe.DataSource    = db.Tenchude();
            cbbChuDe.DisplayMember = "TenChuDe";
            cbbChuDe.ValueMember   = "MaChuDe";
        }