FP300Service.UserControls.ReportUC.btnXReports_Click C# (CSharp) Метод

btnXReports_Click() приватный Метод

private btnXReports_Click ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
Результат void
        private void btnXReports_Click(object sender, EventArgs e)
        {
            txtResult.Text = "";
            int copy = GetPrintTarget();
            CPResponse response;

            try
            {
                if (rbtnXReport.Checked)
                {
                    response = new CPResponse(bridge.Printer.PrintXReport(copy));
                }
                else if (rbtPluRprt.Checked)
                {
                    //FIRST PLU NO
                    int firstPLU = (int)nmrPLUFirst.Value;

                    //LAST PLU NO
                    int lastPLU = (int)nmrPLULast.Value;

                    response = new CPResponse(bridge.Printer.PrintXPluReport(firstPLU, lastPLU, copy));
                }
                else if (rbtnSystemInfoRprt.Checked)
                {
                    response = new CPResponse(bridge.Printer.PrintSystemInfoReport(copy));
                }
                else if (rbtnReceiptTotalReport.Checked)
                {
                    response = new CPResponse(bridge.Printer.PrintReceiptTotalReport(copy));
                }
            }
            catch(Exception ex)
            {
                bridge.Log(FormMessage.OPERATION_FAILS);
            }
        }