Ejemplo n.º 1
0
        void ShowPL()
        {
            PhanLoaiDAO p = new PhanLoaiDAO();

            tlList.DataSource = p.GetListPhanLoai();
            dgvTL.AlternatingRowsDefaultCellStyle.BackColor = Color.LightGray;
        }
Ejemplo n.º 2
0
        void LoadCbPhanLoai()
        {
            PhanLoaiDAO phanloai = new PhanLoaiDAO();

            cbTheLoai.DataSource    = phanloai.GetListPhanLoai();
            cbTheLoai.DisplayMember = "TenLoai";
        }