// Desain Laporan private void barButtonItem9_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) { using (new WaitCursor()) { if (RptDesigner == null || RptDesigner.IsDisposed) { RptDesigner = new frmReportLayout(); RptDesigner.ShowForm2(MdiParent, _ReportName, pivotGridControl1.DataSource, _Evaluator); } else { RptDesigner.BringToFront(); } } }
// Dari Laporan Bebas pake DataSource public void ShowForm4(string ReportName, object DataSource, Evaluator Evaluator) { if (BaseWinFramework.mdiRibbonControl != null) { frmReportLayout frm = new frmReportLayout(); frm.ShowForm4(BaseWinFramework._MdiParent, ReportName, DataSource, Evaluator); CurrentForm = frm; } else { frmReportLayout2 frm = new frmReportLayout2(); frm.ShowForm4(BaseWinFramework._MdiParent, ReportName, DataSource, Evaluator); CurrentForm = frm; } }