コード例 #1
0
        void ShowPL()
        {
            PhanLoaiDAO p = new PhanLoaiDAO();

            tlList.DataSource = p.GetListPhanLoai();
            dgvTL.AlternatingRowsDefaultCellStyle.BackColor = Color.LightGray;
        }
コード例 #2
0
        void LoadCbPhanLoai()
        {
            PhanLoaiDAO phanloai = new PhanLoaiDAO();

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