Пример #1
0
        private void LoadCBLoaiMH()
        {
            tblloaimathangBL ctr = new tblloaimathangBL();
            DataTable        dt  = new DataTable();

            dt = ctr.GetAll();
            cbLoaiMH.DataSource    = dt;
            cbLoaiMH.DisplayMember = "ten";
            cbLoaiMH.ValueMember   = "id";
        }
        private void LoadCBTKLoaiMH()
        {
            flagload = true;
            tblloaimathangBL ctr = new tblloaimathangBL();
            DataTable        dt  = new DataTable();

            dt = ctr.GetAll();
            cbTKLoaiMH.DataSource    = dt;
            cbTKLoaiMH.DisplayMember = "ten";
            cbTKLoaiMH.ValueMember   = "id";
            flagload = false;
        }
Пример #3
0
        private void HienThiDS()
        {
            tblloaimathangBL _ctr = new tblloaimathangBL();
            DataTable        dt   = new DataTable();

            dt = _ctr.GetAll();
            if (dt != null)
            {
                c1FlexGrid1.DataSource = dt;
                dt.Columns.Add("TT", typeof(Int32));
                FormatGrid();
            }
        }