예제 #1
0
        public void LoadCbFilter()
        {
            List <TinhThanhDTO> list = tinhThanhBUS.SelectAll();

            cbFilter.DataSource    = list;
            cbFilter.DisplayMember = "Ten";
            cbFilter.ValueMember   = "ID";
        }
예제 #2
0
        private void LoadCbProvince()
        {
            List <TinhThanhDTO> list = tinhThanhBUS.SelectAll();

            cbProvince.DataSource    = list;
            cbProvince.DisplayMember = "Ten";
            cbProvince.ValueMember   = "ID";
        }
예제 #3
0
        private void LoadDgvTinhThanh()
        {
            List <TinhThanhDTO> list = tinhThanhBUS.SelectAll();

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