Ejemplo n.º 1
0
        private void btnPrintTicket_Click(object sender, EventArgs e)
        {
            string strOperationNumber = dataGridView1.CurrentRow.Cells["OperationNumber"].Value.ToString();
            int    intStatusID        = Convert.ToInt32(dataGridView1.CurrentRow.Cells["OperationType"].Value);

            switch (intStatusID)
            {
            case 1:
                PawnTicketPrintPreviewForm frmTicketPrint = new PawnTicketPrintPreviewForm(m_TicketID, strOperationNumber);
                break;

            case 3:
                RenewPawnPrintPreviewForm frmRenewPrint = new RenewPawnPrintPreviewForm(m_TicketID, strOperationNumber);
                break;

            default:
                break;
            }
        }
Ejemplo n.º 2
0
 private void btnPrint_Click(object sender, EventArgs e)
 {
     PawnTicketPrintPreviewForm frmPawnTicketPrint = new PawnTicketPrintPreviewForm(this, m_TicketID);
 }