private void btnPaymentPrintInvoice_Click(object sender, EventArgs e) { if (string.IsNullOrWhiteSpace(txtPaymentInvoiceNo.Text)) { MessageBox.Show("The invoice number should be entered.", "Warning!", MessageBoxButtons.OK, MessageBoxIcon.Warning); } else { frmGenerateInvoice frmGenerateInvoice = new frmGenerateInvoice(); frmGenerateInvoice.Show(); string pino = txtPaymentInvoiceNo.Text; frmGenerateInvoice.txtInvoiceNo.Text = pino.ToString(); } }
private void btnGenerateCustomerInvoice_Click_2(object sender, EventArgs e) { frmGenerateInvoice frmGenerateInvoice = new frmGenerateInvoice(); frmGenerateInvoice.Show(); }
private void button2_Click_1(object sender, EventArgs e) { frmGenerateInvoice frmGenerateInvoice = new frmGenerateInvoice(); frmGenerateInvoice.Show(); }