예제 #1
0
        void GetListSector()
        {
            List <SectorDTO> sectorDTOs = SectorDAO.GetListSector();

            cbbBuilding.DataSource        = sectorDTOs;
            cbbBuilding.DisplayMember     = "SectorName";
            cbbBuiding_Bill.DataSource    = sectorDTOs;
            cbbBuiding_Bill.DisplayMember = "SectorName";
        }
예제 #2
0
 private void FrmBuildings_Load(object sender, EventArgs e)
 {
     dgvBuildings.DataSource = SectorDAO.GetListSector();
 }