Exemplo n.º 1
0
        private void LoadComboboxFilter()
        {
            List <LoaiHinhDTO> list = loaiHinhBUS.SelectAll();

            cbFilter.DataSource    = list;
            cbFilter.DisplayMember = "Ten";
            cbFilter.ValueMember   = "ID";
        }
Exemplo n.º 2
0
        private void LoadType()
        {
            List <LoaiHinhDTO> list = loaiHinhBUS.SelectAll();

            cbType.DataSource    = list;
            cbType.DisplayMember = "Ten";
            cbType.ValueMember   = "ID";
        }
Exemplo n.º 3
0
        private void LoadDgvType()
        {
            List <LoaiHinhDTO> list = loaiHinhBUS.SelectAll();

            dgvType.AutoGenerateColumns = false;
            dgvType.DataSource          = list;
            ID.DataPropertyName         = "ID";
            Ten.DataPropertyName        = "Ten";
        }