private void QuanLySach_Load(object sender, EventArgs e)
 {
     dgvTheLoai.ValueMember     = "MaTheLoai";
     dgvTheLoai.DisplayMember   = "TenTheLoai";
     dgvTheLoai.DataSource      = tlDAO.GetTheLoaiAll();
     cbTheLoai.ValueMember      = "MaTheLoai";
     cbTheLoai.DisplayMember    = "TenTheLoai";
     cbTheLoai.DataSource       = tlDAO.GetTheLoaiAll();
     cbTimTheLoai.ValueMember   = "MaTheLoai";
     cbTimTheLoai.DisplayMember = "TenTheLoai";
     cbTimTheLoai.DataSource    = tlDAO.GetTheLoaiAll();
     HienThiDanhSach();
 }
Exemplo n.º 2
0
 private void frmdanhsachsach_Load(object sender, EventArgs e)
 {
     colmatheloai.ValueMember   = "MaTheLoai";
     colmatheloai.DisplayMember = "TenTheLoai";
     colmatheloai.DataSource    = TheLoaiDAO.GetTheLoaiAll();
     HienThiDanhSach();
     cbTimTheLoai.ValueMember   = "MaTheLoai";
     cbTimTheLoai.DisplayMember = "TenTheLoai";
     cbTimTheLoai.DataSource    = TheLoaiDAO.GetTheLoaiAll();
 }
Exemplo n.º 3
0
 public void HienThiDanhSach()
 {
     dgvTheLoai.DataSource = TheLoaiDAO.GetTheLoaiAll();
 }