private void btnPrint2_Click(object sender, EventArgs e) { if (this.isValidNgayTinhAndLop() && !this.isDataTableEmpty()) { RptSoThuTienTrang2 rpt = new RptSoThuTienTrang2(); this.fillRptSoThuTienTrang2(rpt); FormMainFacade.ShowReport(rpt); } }
private void fillRptSoThuTienTrang2(RptSoThuTienTrang2 rpt) { rpt.viewBangThuTienRowbindingSource.DataSource = this.viewBangThuTienRowBindingSource.DataSource; rpt.Ngay.Value = this.ngayTinh; }