public void load_Food(int id) { BAL_NUOC id_nuoc = new BAL_NUOC(); cboMonAn.DataSource = id_nuoc.lay_nuoc(id); cboMonAn.DisplayMember = "Tennuoc"; }
private void fHoaDon_Load(object sender, EventArgs e) { BAL_NUOC nuoc = new BAL_NUOC(); ReportDataSource rds = new ReportDataSource("Dataser1", nuoc.lay_nuoc(2)); reportViewer1.LocalReport.DataSources.Add(rds); reportViewer1.RefreshReport(); }