void GetListSector() { List <SectorDTO> sectorDTOs = SectorDAO.GetListSector(); cbbBuilding.DataSource = sectorDTOs; cbbBuilding.DisplayMember = "SectorName"; cbbBuiding_Bill.DataSource = sectorDTOs; cbbBuiding_Bill.DisplayMember = "SectorName"; }
private void FrmBuildings_Load(object sender, EventArgs e) { dgvBuildings.DataSource = SectorDAO.GetListSector(); }