コード例 #1
0
        private void btnPrint_Click_1(object sender, EventArgs e)
        {
            try
            {
                frmRpt_UnSelectMenus afrmRpt_UnSelectMenus = new frmRpt_UnSelectMenus(this.IDBookingHall);
                ReportPrintTool tool = new ReportPrintTool(afrmRpt_UnSelectMenus);
                tool.ShowPreview();

            }
            catch (Exception ex)
            {
                MessageBox.Show("frmLst_DetailBookingHalls.btnPrint_Click\n" + ex.ToString(), "Lỗi", MessageBoxButtons.OK, MessageBoxIcon.Error);
            }
        }
コード例 #2
0
 private void btnPrintMenu_ButtonClick(object sender, DevExpress.XtraEditors.Controls.ButtonPressedEventArgs e)
 {
     int IDMenu = Convert.ToInt32(grvMenus.GetFocusedRowCellValue("ID"));
     frmRpt_UnSelectMenus afrmRpt_UnSelectMenus = new frmRpt_UnSelectMenus(this.IDBookingHall,IDMenu);
     ReportPrintTool tool = new ReportPrintTool(afrmRpt_UnSelectMenus);
     tool.ShowPreview();
 }