示例#1
0
        private void frmThemDo_Load(object sender, EventArgs e)
        {
            LoaiDoDAL db = new LoaiDoDAL();

            lueLoaiDo.Properties.DataSource    = db.Select();
            lueLoaiDo.Properties.DisplayMember = "TenLoai";
            lueLoaiDo.Properties.ValueMember   = "ID";
        }
示例#2
0
        private void LoadLoaiDo()
        {
            LoaiDoDAL db = new LoaiDoDAL();

            lueLoaiDo.Properties.DataSource    = db.Select();
            lueLoaiDo.Properties.ValueMember   = "ID";
            lueLoaiDo.Properties.DisplayMember = "TenLoai";
        }
示例#3
0
        private void LoadLoaiDo()
        {
            LoaiDoDAL db = new LoaiDoDAL();

            gcLoaiDo.DataSource = db.Select();
        }