private void btnPrintApplication_Click(object sender, EventArgs e) { PrintLoanApplication oForm = new PrintLoanApplication(); oForm.DocumentNumber = txtLoanNo.Text; oForm.ViewLayout(); oForm.ShowDialog(); }
private void barButtonItem1_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) { PrintLoanApplication oForm = new PrintLoanApplication(); oForm.DocumentNumber = txtLoanNo.Text; oForm.ViewLayout(); oForm.ShowDialog(); }