private void loadData() { hvs = BLL_HangVe.GetHangVes(); dsSBDi = BLL_SanBay.GetSanBays(); if (chuyenBay == null) { dsSBDen = BLL_SanBay.GetSanBays(); } else { dsSBDen = BLL_TuyenBay.GetSanBaysFrom(chuyenBay.TB.SBDi.maSB); } sbtgs = BLL_SanBay.GetSanBays(); cbSBDi.DisplayMember = "TenSB"; cbSBDi.ValueMember = "MaSB"; cbSBDen.DisplayMember = "TenSB"; cbSBDen.ValueMember = "MaSB"; cbSBTG.DisplayMember = "TenSB"; cbSBTG.ValueMember = "MaSB"; cbSBTG.DataSource = sbtgs; cbSBDi.DataSource = dsSBDi; cbSBDen.DataSource = dsSBDen; onloading = false; state = Actions.NOTHING; dtpNgay.Value = DateTime.Now; }
private void frmAirports_Load(object sender, EventArgs e) { cbSearch.DataSource = sources(); cbSearch.DisplayMember = "Name"; cbSearch.ValueMember = "ID"; sanBays = BLL_SanBay.GetSanBays(); bl = new SortableBindingList <SanBay>(sanBays); dgvAirports.DataSource = bl; CustomDgv(); checkPer(); AppState.state = Actions.NOTHING; }
private void frmTuyenBay_Load(object sender, EventArgs e) { cbSearch.DataSource = sources(); cbSearch.DisplayMember = "Name"; cbSearch.ValueMember = "ID"; tuyenBays = BLL_TuyenBay.GetTuyenBays(); bl = new SortableBindingList <TuyenBay>(tuyenBays); dgvTuyenBays.DataSource = bl; CustomDgv(); cbSBDi.DataSource = BLL_SanBay.GetSanBays(); cbSBDi.DisplayMember = "TenSB"; cbSBDi.ValueMember = "MaSB"; cbSBDen.DataSource = BLL_SanBay.GetSanBays(); cbSBDen.DisplayMember = "TenSB"; cbSBDen.ValueMember = "MaSB"; checkPer(); }
private void reloadData() { sanBays = BLL_SanBay.GetSanBays(); bl = new SortableBindingList <SanBay>(sanBays); dgvAirports.DataSource = bl; }