public void CreatePawnPaymentReceipt() { string customerId = GetCustomerID(); string transactionId = TransIDTextBox.Text; string paymentAmount = PaymentTextBox.Text; int payment = Convert.ToInt32(paymentAmount); PawnPaymentReceipt pawnPaymentReceipt = new PawnPaymentReceipt(); pawnPaymentReceipt.CustomerIDValue = customerId; pawnPaymentReceipt.TransactionNumber = transactionId; pawnPaymentReceipt.PaymentAmount = paymentAmount; pawnPaymentReceipt.Show(); }