void ShowPL() { PhanLoaiDAO p = new PhanLoaiDAO(); tlList.DataSource = p.GetListPhanLoai(); dgvTL.AlternatingRowsDefaultCellStyle.BackColor = Color.LightGray; }
void LoadCbPhanLoai() { PhanLoaiDAO phanloai = new PhanLoaiDAO(); cbTheLoai.DataSource = phanloai.GetListPhanLoai(); cbTheLoai.DisplayMember = "TenLoai"; }