private void PaymentReceiptDetails_Load(object sender, EventArgs e) { lblORNo.Text = ORno.ToString(); lblStudentID.Text = StudentID; lblStudentName.Text = StudentName; txtAmount.Text = _Amount.ToString(); lblAmountInText.Text = NumberToText.Convert(_Amount); }
private void btnOk_Click(object sender, EventArgs e) { _ReceivedFrom = txtReceivedFrom.Text; _TIN = txtTIN.Text; _AddressAt = txtAddress.Text; _BusinessStyle = txtBusinessStyle.Text; _Amount = float.Parse(txtAmount.Text); _AmountInText = lblAmountInText.Text; _PartialFull = txtPartialFull.Text; btnPushed = btnOk.Text; frmPrintReceipt fmPrintReceipt = new frmPrintReceipt(); fmPrintReceipt.setVars(ORno.ToString(), _ReceivedFrom, _TIN, _AddressAt, _BusinessStyle, _AmountInText, _Amount.ToString(), _PartialFull); fmPrintReceipt.ShowDialog(); if (fmPrintReceipt.bGenerated == true) { this.Close(); } }