private void btnShow_Click(object sender, EventArgs e) { HopDong i = (HopDong)cbb_HopDong.SelectedItem; List <HoaDon> hoadonlist = CSDL_OOP.Instance.getListByIDHopDong(i.IDHopDong); Show(hoadonlist); }
public void ReLoad() { HopDong i = (HopDong)cbb_HopDong.SelectedItem; List <HoaDon> hoadonlist = CSDL_OOP.Instance.getListByIDHopDong(i.IDHopDong); Show(hoadonlist); }
public void LoadCBB() { HopDong hd = new HopDong("HD0", "All", DateTime.Now); cbb_HopDong.Items.Add(hd); foreach (HopDong i in CSDL_OOP.Instance.listHopDong) { cbb_HopDong.Items.Add(i); } cbb_HopDong.DisplayMember = "TenHopDong"; cbb_HopDong.SelectedIndex = 0; }